Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",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 3.2.3+maint.om/package.mo): time 0.001047/0.001047, allocations: 191.1 kB / 8.481 MB, free: 2.77 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.052/1.052, allocations: 205.2 MB / 214.1 MB, free: 2.078 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008658/0.0008657, allocations: 92.03 kB / 262.1 MB, free: 1.473 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.08594/0.08683, allocations: 52.99 MB / 315.1 MB, free: 12.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0693/0.1561, allocations: 47.57 MB / 362.6 MB, free: 12.75 MB / 318.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2055/0.3617, allocations: 101.5 MB / 464.1 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.362, allocations: 74.39 kB / 464.2 MB, free: 12.93 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.3694/0.7315, allocations: 125.7 MB / 0.576 GB, free: 78.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.7316, allocations: 9 kB / 0.576 GB, free: 78.03 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001071/0.7326, allocations: 419.7 kB / 0.5764 GB, free: 77.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005053/0.7377, allocations: 2.428 MB / 0.5788 GB, free: 76.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.7378, allocations: 16.97 kB / 0.5788 GB, free: 76.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001852/0.7379, allocations: 38.97 kB / 0.5788 GB, free: 76.15 MB / 398.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001248/0.7392, allocations: 0.6875 MB / 0.5795 GB, free: 75.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.7402, allocations: 0.7213 MB / 0.5802 GB, free: 75.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.7402, allocations: 0 / 0.5802 GB, free: 75.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.2e-05/0.7403, allocations: 0 / 0.5802 GB, free: 75.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.109e-05/0.7404, allocations: 23.97 kB / 0.5802 GB, free: 75.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005977/0.7463, allocations: 3.202 MB / 0.5834 GB, free: 71.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000445/0.7468, allocations: 355 kB / 0.5837 GB, free: 71.58 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005889/0.7474, allocations: 0.5346 MB / 0.5842 GB, free: 71.05 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0268/0.7742, allocations: 36.07 MB / 0.6195 GB, free: 29.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003731/0.7746, allocations: 287.3 kB / 0.6197 GB, free: 29.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.275e-06/0.7746, allocations: 0 / 0.6197 GB, free: 29.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.001395/0.776, allocations: 0.7834 MB / 0.6205 GB, free: 28.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.435e-05/0.7761, allocations: 269 kB / 0.6208 GB, free: 28.49 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003554/0.7797, allocations: 2.464 MB / 0.6232 GB, free: 26.03 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.814e-05/0.7798, allocations: 25.7 kB / 0.6232 GB, free: 26 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004113/0.7802, allocations: 0.6625 MB / 0.6238 GB, free: 25.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.7803, allocations: 161.8 kB / 0.624 GB, free: 25.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.312e-05/0.7804, allocations: 0 / 0.624 GB, free: 25.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 5.421e-05/0.7804, allocations: 345.8 kB / 0.6243 GB, free: 24.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002673/0.7807, allocations: 177.9 kB / 0.6245 GB, free: 24.64 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003758/0.7811, allocations: 0.5682 MB / 0.625 GB, free: 23.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004166/0.7815, allocations: 267.2 kB / 0.6253 GB, free: 23.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.7815, allocations: 4 kB / 0.6253 GB, free: 23.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001669/0.7832, allocations: 1.048 MB / 0.6263 GB, free: 22.56 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.7832, allocations: 11.98 kB / 0.6263 GB, free: 22.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001129/0.7833, allocations: 76 kB / 0.6264 GB, free: 22.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.03e-05/0.7834, allocations: 27.89 kB / 0.6264 GB, free: 22.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007435/0.7841, allocations: 216.1 kB / 0.6266 GB, free: 22.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.507e-05/0.7841, allocations: 23.92 kB / 0.6267 GB, free: 22.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.7856, allocations: 119 kB / 0.6268 GB, free: 22.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.856e-05/0.7857, allocations: 64 kB / 0.6268 GB, free: 22.03 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0001441/0.7858, allocations: 140.6 kB / 0.627 GB, free: 21.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004702/0.7863, allocations: 403 kB / 0.6274 GB, free: 21.49 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003696/0.79, allocations: 1.398 MB / 0.6287 GB, free: 20.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.884e-06/0.79, allocations: 7.938 kB / 0.6287 GB, free: 20.08 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.888e-05/0.7901, allocations: 0 / 0.6287 GB, free: 20.08 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.7901, allocations: 7.984 kB / 0.6287 GB, free: 20.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003163/0.7933, allocations: 2.084 MB / 0.6308 GB, free: 17.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.426e-05/0.7934, allocations: 67.98 kB / 0.6308 GB, free: 17.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005215/0.7939, allocations: 116 kB / 0.6309 GB, free: 17.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.082e-06/0.7939, allocations: 0 / 0.6309 GB, free: 17.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.789e-05/0.794, allocations: 31.91 kB / 0.631 GB, free: 17.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.794, allocations: 7.938 kB / 0.631 GB, free: 17.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.794, allocations: 0 / 0.631 GB, free: 17.73 MB / 398.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00135/0.7953, allocations: 1.195 MB / 0.6322 GB, free: 16.49 MB / 398.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001597/0.797, allocations: 1.87 MB / 0.634 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008971/0.7979, allocations: 0.5116 MB / 0.6345 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006767/0.7985, allocations: 8 kB / 0.6345 GB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/0.7996, allocations: 49.34 kB / 0.6345 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.7997, allocations: 55.94 kB / 0.6346 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.861e-05/0.7998, allocations: 39.98 kB / 0.6346 GB, free: 13.89 MB / 398.1 MB Notification: Performance of sort global known variables: time 0.00212/0.8019, allocations: 1.82 MB / 0.6364 GB, free: 12.08 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002079/0.804, allocations: 0.6438 MB / 0.637 GB, free: 11.43 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001355/0.8054, allocations: 0.9856 MB / 0.638 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000958/0.8063, allocations: 0.6815 MB / 0.6387 GB, free: 9.824 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.8063, allocations: 0 / 0.6387 GB, free: 9.824 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004328/0.8068, allocations: 383.7 kB / 0.639 GB, free: 9.426 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001839/0.8086, allocations: 0.5012 MB / 0.6395 GB, free: 8.926 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005752/0.8144, allocations: 3.284 MB / 0.6427 GB, free: 5.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001206/0.8156, allocations: 1.957 MB / 0.6446 GB, free: 3.582 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.8156, allocations: 0 / 0.6446 GB, free: 3.582 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)