Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001632/0.001632, allocations: 182.8 kB / 8.135 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.138/1.138, allocations: 221.4 MB / 229.9 MB, free: 3.09 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008592/0.0008592, allocations: 102.9 kB / 280.8 MB, free: 1.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09337/0.09426, allocations: 55.8 MB / 336.6 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1759/0.2702, allocations: 50.4 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1005/0.3707, allocations: 103.6 MB / 490.6 MB, free: 15.11 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.371, allocations: 71.91 kB / 490.7 MB, free: 15.04 MB / 378.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.6753/1.046, allocations: 218.9 MB / 0.693 GB, free: 58.27 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/1.046, allocations: 7.875 kB / 0.693 GB, free: 58.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009326/1.047, allocations: 0.7417 MB / 0.6937 GB, free: 57.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006812/1.054, allocations: 4.499 MB / 0.6981 GB, free: 56.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.846e-05/1.054, allocations: 32.47 kB / 0.6981 GB, free: 56.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002766/1.054, allocations: 68.72 kB / 0.6982 GB, free: 56.83 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001912/1.056, allocations: 1.312 MB / 0.6995 GB, free: 56.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00168/1.058, allocations: 1.316 MB / 0.7008 GB, free: 56.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/1.058, allocations: 0 / 0.7008 GB, free: 56.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001206/1.058, allocations: 10.12 kB / 0.7008 GB, free: 56.62 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.176e-05/1.058, allocations: 40.95 kB / 0.7008 GB, free: 56.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01041/1.069, allocations: 5.676 MB / 0.7063 GB, free: 55.92 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007952/1.07, allocations: 0.6437 MB / 0.707 GB, free: 55.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/1.071, allocations: 1.044 MB / 0.708 GB, free: 55.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05236/1.123, allocations: 71.41 MB / 0.7777 GB, free: 18.4 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006026/1.124, allocations: 488.4 kB / 0.7782 GB, free: 18.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=85): time 2.895e-06/1.124, allocations: 0 / 0.7782 GB, free: 18.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=85): time 0.002192/1.126, allocations: 1.409 MB / 0.7796 GB, free: 16.91 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001893/1.126, allocations: 485.5 kB / 0.78 GB, free: 16.34 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006571/1.133, allocations: 4.379 MB / 0.7843 GB, free: 13.48 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001491/1.133, allocations: 25.7 kB / 0.7843 GB, free: 13.45 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008822/1.134, allocations: 1.175 MB / 0.7855 GB, free: 12.49 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002427/1.134, allocations: 295.4 kB / 0.7858 GB, free: 12.23 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.606e-05/1.134, allocations: 0 / 0.7858 GB, free: 12.23 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/1.134, allocations: 367.3 kB / 0.7861 GB, free: 11.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004684/1.135, allocations: 308 kB / 0.7864 GB, free: 11.59 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007197/1.135, allocations: 1.091 MB / 0.7875 GB, free: 10.18 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007757/1.136, allocations: 490.2 kB / 0.7879 GB, free: 9.797 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/1.136, allocations: 11.94 kB / 0.788 GB, free: 9.789 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002655/1.139, allocations: 1.914 MB / 0.7898 GB, free: 8.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/1.139, allocations: 4 kB / 0.7898 GB, free: 8.086 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002238/1.139, allocations: 163.2 kB / 0.79 GB, free: 7.934 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.879e-05/1.139, allocations: 39.91 kB / 0.79 GB, free: 7.895 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/1.14, allocations: 375.6 kB / 0.7904 GB, free: 7.609 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.968e-05/1.14, allocations: 50.42 kB / 0.7904 GB, free: 7.578 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0022/1.142, allocations: 176.9 kB / 0.7906 GB, free: 7.418 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000182/1.143, allocations: 120 kB / 0.7907 GB, free: 7.301 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.000264/1.143, allocations: 178.3 kB / 0.7909 GB, free: 7.152 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007917/1.144, allocations: 0.7202 MB / 0.7916 GB, free: 6.426 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007078/1.151, allocations: 2.612 MB / 0.7941 GB, free: 4.367 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.999e-06/1.151, allocations: 8 kB / 0.7941 GB, free: 4.359 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/1.151, allocations: 0 / 0.7941 GB, free: 4.359 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/1.151, allocations: 3.609 kB / 0.7941 GB, free: 4.359 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006209/1.157, allocations: 3.551 MB / 0.7976 GB, free: 1.488 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002121/1.157, allocations: 139.2 kB / 0.7977 GB, free: 1.359 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008272/1.158, allocations: 172.3 kB / 0.7979 GB, free: 1.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.17e-05/1.158, allocations: 4 kB / 0.7979 GB, free: 1.227 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/1.158, allocations: 47.75 kB / 0.798 GB, free: 1.184 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/1.158, allocations: 4 kB / 0.798 GB, free: 1.18 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/1.158, allocations: 0 / 0.798 GB, free: 1.18 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002793/1.161, allocations: 2.052 MB / 0.8 GB, free: 15.12 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003399/1.165, allocations: 2.923 MB / 0.8028 GB, free: 12.21 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001832/1.166, allocations: 0.9304 MB / 0.8037 GB, free: 11.34 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/1.168, allocations: 9.078 kB / 0.8037 GB, free: 11.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00157/1.169, allocations: 47.91 kB / 0.8038 GB, free: 11.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002226/1.169, allocations: 95.28 kB / 0.8039 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001382/1.169, allocations: 74.7 kB / 0.8039 GB, free: 11.16 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.005618/1.175, allocations: 3.23 MB / 0.8071 GB, free: 8.195 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003174/1.178, allocations: 1.136 MB / 0.8082 GB, free: 7.059 MB / 458.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.001824/1.18, allocations: 1.303 MB / 0.8095 GB, free: 5.852 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001838/1.182, allocations: 1.253 MB / 0.8107 GB, free: 4.609 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/1.182, allocations: 0 / 0.8107 GB, free: 4.609 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009042/1.183, allocations: 0.7056 MB / 0.8114 GB, free: 3.867 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004431/1.187, allocations: 1.123 MB / 0.8125 GB, free: 2.785 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1409/1.328, allocations: 6.003 MB / 0.8184 GB, free: 118.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001861/1.33, allocations: 3.025 MB / 0.8213 GB, free: 117.7 MB / 458.7 MB Notification: Performance of SimCode: time 9.81e-07/1.33, allocations: 0 / 0.8213 GB, free: 117.7 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)