Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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.0009806/0.0009805, allocations: 202.3 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.093/1.093, allocations: 225.5 MB / 234.4 MB, free: 3.391 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008266/0.0008266, allocations: 92.41 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08764/0.08848, allocations: 56.89 MB / 343.2 MB, free: 8.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0765/0.165, allocations: 51.48 MB / 394.7 MB, free: 5.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2128/0.3778, allocations: 104.3 MB / 499 MB, free: 5.016 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001753/0.378, allocations: 73.91 kB / 499.1 MB, free: 4.98 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.3817/0.7597, allocations: 139.7 MB / 0.6238 GB, free: 77.42 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.7598, allocations: 13.41 kB / 0.6238 GB, free: 77.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002839/0.7601, allocations: 399.1 kB / 0.6242 GB, free: 77.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002797/0.7629, allocations: 2.355 MB / 0.6265 GB, free: 76.55 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.008e-05/0.7629, allocations: 19.59 kB / 0.6265 GB, free: 76.55 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.763, allocations: 38.47 kB / 0.6265 GB, free: 76.55 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008806/0.7639, allocations: 0.6822 MB / 0.6272 GB, free: 76.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008758/0.7648, allocations: 0.7194 MB / 0.6279 GB, free: 76.42 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.7648, allocations: 1.406 kB / 0.6279 GB, free: 76.42 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.661e-05/0.7649, allocations: 4.297 kB / 0.6279 GB, free: 76.42 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.7649, allocations: 24.41 kB / 0.6279 GB, free: 76.42 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004088/0.769, allocations: 3.081 MB / 0.6309 GB, free: 75.26 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003823/0.7694, allocations: 360.8 kB / 0.6313 GB, free: 75.08 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005485/0.77, allocations: 0.5331 MB / 0.6318 GB, free: 74.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02797/0.7979, allocations: 36.59 MB / 0.6675 GB, free: 45.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000395/0.7984, allocations: 286.8 kB / 0.6678 GB, free: 45.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.224e-06/0.7984, allocations: 0 / 0.6678 GB, free: 45.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001146/0.7995, allocations: 0.7761 MB / 0.6685 GB, free: 44.78 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.7996, allocations: 267.2 kB / 0.6688 GB, free: 44.47 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002625/0.8022, allocations: 2.302 MB / 0.6711 GB, free: 43.56 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.761e-05/0.8023, allocations: 32.62 kB / 0.6711 GB, free: 43.53 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003184/0.8026, allocations: 0.6437 MB / 0.6717 GB, free: 43.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.564e-05/0.8027, allocations: 165 kB / 0.6719 GB, free: 42.99 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-05/0.8028, allocations: 0 / 0.6719 GB, free: 42.99 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.335e-05/0.8028, allocations: 342.1 kB / 0.6722 GB, free: 42.67 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002589/0.8031, allocations: 175 kB / 0.6724 GB, free: 42.61 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000365/0.8035, allocations: 0.567 MB / 0.6729 GB, free: 41.99 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000388/0.8038, allocations: 271.9 kB / 0.6732 GB, free: 41.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.8039, allocations: 3.25 kB / 0.6732 GB, free: 41.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001238/0.8051, allocations: 1.041 MB / 0.6742 GB, free: 41.46 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.8051, allocations: 3.281 kB / 0.6742 GB, free: 41.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001051/0.8052, allocations: 80.83 kB / 0.6743 GB, free: 41.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.434e-05/0.8053, allocations: 23.25 kB / 0.6743 GB, free: 41.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007204/0.806, allocations: 220 kB / 0.6745 GB, free: 41.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.806, allocations: 23.66 kB / 0.6745 GB, free: 41.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/0.807, allocations: 107.4 kB / 0.6746 GB, free: 41.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.238e-05/0.8071, allocations: 63.81 kB / 0.6747 GB, free: 41.38 MB / 442.7 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.000127/0.8073, allocations: 151.2 kB / 0.6748 GB, free: 41.24 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002421/0.8075, allocations: 383.4 kB / 0.6752 GB, free: 41.04 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00328/0.8108, allocations: 1.369 MB / 0.6765 GB, free: 40.51 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.8108, allocations: 10.44 kB / 0.6766 GB, free: 40.51 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.8108, allocations: 0 / 0.6766 GB, free: 40.51 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.8108, allocations: 0 / 0.6766 GB, free: 40.51 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/0.8131, allocations: 1.993 MB / 0.6785 GB, free: 39.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9e-05/0.8132, allocations: 76.2 kB / 0.6786 GB, free: 39.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005021/0.8137, allocations: 107.9 kB / 0.6787 GB, free: 39.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.8137, allocations: 6.656 kB / 0.6787 GB, free: 39.61 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.33e-05/0.8138, allocations: 22.69 kB / 0.6787 GB, free: 39.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.8138, allocations: 3.312 kB / 0.6787 GB, free: 39.61 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.8138, allocations: 4 kB / 0.6787 GB, free: 39.6 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001153/0.815, allocations: 1.176 MB / 0.6799 GB, free: 38.96 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001459/0.8164, allocations: 1.834 MB / 0.6816 GB, free: 37.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005592/0.817, allocations: 0.5585 MB / 0.6822 GB, free: 37.42 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003692/0.8174, allocations: 3.25 kB / 0.6822 GB, free: 37.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007482/0.8181, allocations: 44.42 kB / 0.6822 GB, free: 37.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.8183, allocations: 64.64 kB / 0.6823 GB, free: 37.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.906e-05/0.8183, allocations: 40.52 kB / 0.6823 GB, free: 37.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001616/0.82, allocations: 1.7 MB / 0.684 GB, free: 36.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001685/0.8217, allocations: 0.644 MB / 0.6846 GB, free: 36.58 MB / 442.7 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.0009329/0.8226, allocations: 0.9262 MB / 0.6855 GB, free: 36.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0007504/0.8234, allocations: 0.6617 MB / 0.6862 GB, free: 36.01 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.8234, allocations: 1.25 kB / 0.6862 GB, free: 36.01 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003892/0.8238, allocations: 388.8 kB / 0.6865 GB, free: 35.81 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/0.8256, allocations: 0.5771 MB / 0.6871 GB, free: 35.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004289/0.8299, allocations: 3.117 MB / 0.6902 GB, free: 34.32 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00101/0.8309, allocations: 1.894 MB / 0.692 GB, free: 33.54 MB / 442.7 MB Notification: Performance of SimCode: time 3.2e-07/0.8309, allocations: 0 / 0.692 GB, free: 33.54 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)