Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009889/0.0009889, allocations: 174.9 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 221.3 MB / 235.5 MB, free: 2.871 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.0008667/0.0008667, allocations: 95.67 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.638e-05/2.642e-05, allocations: 0 / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09978/0.09982, allocations: 50.41 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.333/0.4329, allocations: 104.2 MB / 498.5 MB, free: 15.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.4332, allocations: 71.97 kB / 498.6 MB, free: 15.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4798/0.913, allocations: 141.1 MB / 0.6247 GB, free: 79.28 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.913, allocations: 0 / 0.6247 GB, free: 79.28 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.443e-05/0.9131, allocations: 48 kB / 0.6247 GB, free: 79.23 MB / 426.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.004107/0.9172, allocations: 2.697 MB / 0.6274 GB, free: 76.48 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.9173, allocations: 8.031 kB / 0.6274 GB, free: 76.48 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001129/0.9174, allocations: 102.5 kB / 0.6275 GB, free: 76.37 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003896/0.9178, allocations: 399.1 kB / 0.6279 GB, free: 75.97 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0034/0.9212, allocations: 2.353 MB / 0.6302 GB, free: 73.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.39e-05/0.9213, allocations: 41 kB / 0.6302 GB, free: 73.51 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.9214, allocations: 55.86 kB / 0.6302 GB, free: 73.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.9225, allocations: 0.7872 MB / 0.631 GB, free: 72.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.9225, allocations: 0 / 0.631 GB, free: 72.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.806e-05/0.9226, allocations: 24 kB / 0.631 GB, free: 72.61 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.9226, allocations: 19.98 kB / 0.6311 GB, free: 72.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008603/0.9235, allocations: 0.7072 MB / 0.6318 GB, free: 71.88 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004775/0.9282, allocations: 3.185 MB / 0.6349 GB, free: 68.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006131/0.9289, allocations: 488.9 kB / 0.6353 GB, free: 68.12 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005867/0.9295, allocations: 0.6005 MB / 0.6359 GB, free: 67.51 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02749/0.957, allocations: 36.07 MB / 0.6711 GB, free: 26.31 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004698/0.9575, allocations: 317.5 kB / 0.6714 GB, free: 25.99 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.835e-06/0.9575, allocations: 0 / 0.6714 GB, free: 25.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001169/0.9587, allocations: 0.7899 MB / 0.6722 GB, free: 25.19 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.854e-05/0.9588, allocations: 277 kB / 0.6725 GB, free: 24.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002777/0.9616, allocations: 2.503 MB / 0.6749 GB, free: 22.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.346e-05/0.9616, allocations: 41.7 kB / 0.675 GB, free: 22.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009204/0.9626, allocations: 1.493 MB / 0.6764 GB, free: 20.79 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.9627, allocations: 165.6 kB / 0.6766 GB, free: 20.63 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.097e-05/0.9627, allocations: 23.98 kB / 0.6766 GB, free: 20.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.218e-05/0.9628, allocations: 337.9 kB / 0.6769 GB, free: 20.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002802/0.9631, allocations: 194 kB / 0.6771 GB, free: 20.08 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004221/0.9635, allocations: 0.5936 MB / 0.6777 GB, free: 19.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003723/0.9639, allocations: 281.3 kB / 0.678 GB, free: 19.02 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.9639, allocations: 4 kB / 0.678 GB, free: 19.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001348/0.9653, allocations: 1.128 MB / 0.6791 GB, free: 17.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.9653, allocations: 12 kB / 0.6791 GB, free: 17.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.644e-05/0.9654, allocations: 83.92 kB / 0.6791 GB, free: 17.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.147e-05/0.9654, allocations: 16 kB / 0.6792 GB, free: 17.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007184/0.9661, allocations: 219.8 kB / 0.6794 GB, free: 17.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.057e-05/0.9662, allocations: 23.92 kB / 0.6794 GB, free: 17.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.9673, allocations: 123 kB / 0.6795 GB, free: 17.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.958e-05/0.9674, allocations: 64 kB / 0.6796 GB, free: 17.34 MB / 426.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.0001611/0.9675, allocations: 173.4 kB / 0.6797 GB, free: 17.17 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002685/0.9678, allocations: 383.4 kB / 0.6801 GB, free: 16.79 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002499/0.9703, allocations: 1.131 MB / 0.6812 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.9704, allocations: 8 kB / 0.6812 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.9704, allocations: 0 / 0.6812 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.9704, allocations: 3.984 kB / 0.6812 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003042/0.9734, allocations: 2.108 MB / 0.6833 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.818e-05/0.9735, allocations: 71.98 kB / 0.6833 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005281/0.9741, allocations: 103.9 kB / 0.6834 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.082e-06/0.9741, allocations: 0 / 0.6834 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.638e-05/0.9741, allocations: 35.98 kB / 0.6835 GB, free: 13.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.9742, allocations: 7.953 kB / 0.6835 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.9742, allocations: 0 / 0.6835 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.9755, allocations: 1.209 MB / 0.6847 GB, free: 11.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009406/0.9764, allocations: 0.5568 MB / 0.6852 GB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002723/0.9767, allocations: 12 kB / 0.6852 GB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006857/0.9774, allocations: 55.95 kB / 0.6853 GB, free: 11.33 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.9776, allocations: 63.88 kB / 0.6853 GB, free: 11.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.22e-05/0.9776, allocations: 32 kB / 0.6854 GB, free: 11.23 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002191/0.9798, allocations: 1.906 MB / 0.6872 GB, free: 9.324 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.9798, allocations: 4 kB / 0.6872 GB, free: 9.32 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001626/0.9815, allocations: 0.6439 MB / 0.6879 GB, free: 8.676 MB / 426.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.002675/0.9841, allocations: 2.612 MB / 0.6904 GB, free: 6.02 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009716/0.9851, allocations: 0.7075 MB / 0.6911 GB, free: 5.293 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.9851, allocations: 4 kB / 0.6911 GB, free: 5.289 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004003/0.9855, allocations: 399.3 kB / 0.6915 GB, free: 4.871 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002093/0.9876, allocations: 0.5894 MB / 0.6921 GB, free: 4.281 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005852/0.9935, allocations: 3.625 MB / 0.6956 GB, free: 0.5938 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/0.9947, allocations: 1.724 MB / 0.6973 GB, free: 14.84 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001493/0.9962, allocations: 378.4 kB / 0.6977 GB, free: 14.47 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00136/0.9976, allocations: 1.21 MB / 0.6988 GB, free: 13.26 MB / 442.7 MB Notification: Performance of SimCode: time 9.72e-07/0.9976, allocations: 3.938 kB / 0.6988 GB, free: 13.26 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3706/1.368, allocations: 58.66 MB / 0.7561 GB, free: 96.06 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001446/1.368, allocations: 162.9 kB / 0.7563 GB, free: 95.84 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.323/5.692, allocations: 2.25 kB / 0.7563 GB, free: 95.84 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat