Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001097/0.001097, allocations: 201.8 kB / 8.54 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.101/1.101, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008409/0.0008409, allocations: 96.84 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08806/0.08892, allocations: 56.89 MB / 343.2 MB, free: 8.617 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07845/0.1674, allocations: 51.48 MB / 394.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2198/0.3872, allocations: 104.4 MB / 499.1 MB, free: 4.883 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000188/0.3874, allocations: 72.77 kB / 499.2 MB, free: 4.844 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.5271/0.9145, allocations: 219.8 MB / 0.7021 GB, free: 37.14 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.9146, allocations: 8 kB / 0.7021 GB, free: 37.13 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005841/0.9152, allocations: 0.7449 MB / 0.7029 GB, free: 36.38 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005517/0.9207, allocations: 4.491 MB / 0.7072 GB, free: 31.97 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.082e-05/0.9207, allocations: 32 kB / 0.7073 GB, free: 31.94 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001906/0.9209, allocations: 71.8 kB / 0.7073 GB, free: 31.87 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001707/0.9227, allocations: 1.305 MB / 0.7086 GB, free: 30.56 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.9242, allocations: 1.321 MB / 0.7099 GB, free: 29.17 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.9243, allocations: 4 kB / 0.7099 GB, free: 29.17 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001135/0.9244, allocations: 3.984 kB / 0.7099 GB, free: 29.16 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.926e-05/0.9244, allocations: 43.89 kB / 0.71 GB, free: 29.12 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007855/0.9323, allocations: 5.677 MB / 0.7155 GB, free: 23.45 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006648/0.933, allocations: 0.6529 MB / 0.7161 GB, free: 22.79 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009567/0.9339, allocations: 1.035 MB / 0.7171 GB, free: 21.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1691/1.103, allocations: 72.74 MB / 0.7882 GB, free: 59.32 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005814/1.104, allocations: 486.1 kB / 0.7886 GB, free: 59.27 MB / 442.7 MB Notification: Performance of pre-optimization done (n=85): time 2.355e-06/1.104, allocations: 0 / 0.7886 GB, free: 59.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=85): time 0.001879/1.106, allocations: 1.419 MB / 0.79 GB, free: 58.87 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.475e-05/1.106, allocations: 478.3 kB / 0.7905 GB, free: 58.31 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004845/1.11, allocations: 4.378 MB / 0.7948 GB, free: 57.89 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.546e-05/1.111, allocations: 28.64 kB / 0.7948 GB, free: 57.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006473/1.111, allocations: 1.176 MB / 0.7959 GB, free: 57.51 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001742/1.111, allocations: 288.7 kB / 0.7962 GB, free: 57.37 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.975e-05/1.111, allocations: 1.906 kB / 0.7962 GB, free: 57.37 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.62e-05/1.112, allocations: 362.4 kB / 0.7966 GB, free: 57.06 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004585/1.112, allocations: 319.7 kB / 0.7969 GB, free: 57.06 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006551/1.113, allocations: 1.081 MB / 0.7979 GB, free: 56.07 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007178/1.113, allocations: 0.4883 MB / 0.7984 GB, free: 56.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/1.113, allocations: 6.969 kB / 0.7984 GB, free: 56.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002391/1.116, allocations: 1.916 MB / 0.8003 GB, free: 55.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/1.116, allocations: 6.312 kB / 0.8003 GB, free: 55.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002049/1.116, allocations: 162.1 kB / 0.8004 GB, free: 55.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.364e-05/1.116, allocations: 35.91 kB / 0.8005 GB, free: 55.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/1.117, allocations: 378.9 kB / 0.8008 GB, free: 55.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.413e-05/1.117, allocations: 48.02 kB / 0.8009 GB, free: 55.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001894/1.119, allocations: 183.5 kB / 0.801 GB, free: 55.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001725/1.119, allocations: 122.3 kB / 0.8012 GB, free: 55.61 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002098/1.12, allocations: 178.6 kB / 0.8013 GB, free: 55.51 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004743/1.12, allocations: 0.7173 MB / 0.802 GB, free: 55.14 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006682/1.127, allocations: 2.603 MB / 0.8046 GB, free: 55.01 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/1.127, allocations: 6.719 kB / 0.8046 GB, free: 55.01 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/1.127, allocations: 2.062 kB / 0.8046 GB, free: 55.01 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/1.127, allocations: 3.797 kB / 0.8046 GB, free: 55.01 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004735/1.131, allocations: 3.54 MB / 0.808 GB, free: 54.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001834/1.132, allocations: 136.1 kB / 0.8082 GB, free: 54.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007667/1.132, allocations: 168 kB / 0.8083 GB, free: 54.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/1.132, allocations: 3.375 kB / 0.8083 GB, free: 54.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/1.133, allocations: 50.72 kB / 0.8084 GB, free: 54.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/1.133, allocations: 16.23 kB / 0.8084 GB, free: 54.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/1.133, allocations: 2.516 kB / 0.8084 GB, free: 54.62 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002115/1.135, allocations: 2.045 MB / 0.8104 GB, free: 53.93 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002704/1.137, allocations: 2.929 MB / 0.8133 GB, free: 52.86 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0014/1.139, allocations: 0.9338 MB / 0.8142 GB, free: 52.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007042/1.14, allocations: 10.05 kB / 0.8142 GB, free: 52.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/1.141, allocations: 42.97 kB / 0.8142 GB, free: 52.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/1.141, allocations: 99.44 kB / 0.8143 GB, free: 52.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/1.141, allocations: 68.25 kB / 0.8144 GB, free: 52.33 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.00383/1.145, allocations: 3.232 MB / 0.8175 GB, free: 52.08 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002613/1.148, allocations: 1.146 MB / 0.8187 GB, free: 52.07 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001383/1.149, allocations: 1.295 MB / 0.8199 GB, free: 51.96 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001461/1.151, allocations: 1.254 MB / 0.8212 GB, free: 51.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/1.151, allocations: 3.812 kB / 0.8212 GB, free: 51.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006782/1.151, allocations: 0.711 MB / 0.8218 GB, free: 51.45 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003543/1.155, allocations: 1.116 MB / 0.8229 GB, free: 51.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009911/1.165, allocations: 6.002 MB / 0.8288 GB, free: 49.64 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002113/1.167, allocations: 3.033 MB / 0.8318 GB, free: 48.85 MB / 442.7 MB Notification: Performance of SimCode: time 6.11e-07/1.167, allocations: 0 / 0.8318 GB, free: 48.85 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)