Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002179/0.002185, allocations: 179.4 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.216/2.216, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00107/0.001069, allocations: 89.33 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.779e-05/1.779e-05, allocations: 0 / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.328, allocations: 47.56 MB / 362.4 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1593/0.4873, allocations: 101.5 MB / 464 MB, free: 0.707 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/0.4876, allocations: 73.55 kB / 464 MB, free: 0.6367 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6469/1.135, allocations: 120.3 MB / 0.5706 GB, free: 70.63 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.825e-06/1.135, allocations: 0 / 0.5706 GB, free: 70.63 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001875/1.135, allocations: 48 kB / 0.5707 GB, free: 70.58 MB / 395.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.006382/1.141, allocations: 2.713 MB / 0.5733 GB, free: 67.82 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/1.141, allocations: 12.03 kB / 0.5733 GB, free: 67.8 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007865/1.142, allocations: 395.2 kB / 0.5737 GB, free: 67.41 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006262/1.148, allocations: 2.367 MB / 0.576 GB, free: 65.07 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.202e-05/1.148, allocations: 19.95 kB / 0.576 GB, free: 65.05 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002038/1.149, allocations: 43.89 kB / 0.5761 GB, free: 65 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00149/1.15, allocations: 0.686 MB / 0.5768 GB, free: 64.32 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/1.152, allocations: 0.7206 MB / 0.5775 GB, free: 63.56 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/1.152, allocations: 3.984 kB / 0.5775 GB, free: 63.55 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/1.152, allocations: 0 / 0.5775 GB, free: 63.55 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.733e-05/1.152, allocations: 23.92 kB / 0.5775 GB, free: 63.53 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008301/1.16, allocations: 3.083 MB / 0.5805 GB, free: 60.42 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/1.161, allocations: 471.9 kB / 0.581 GB, free: 59.95 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009051/1.162, allocations: 0.5732 MB / 0.5815 GB, free: 59.37 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.046/1.208, allocations: 36.15 MB / 0.6168 GB, free: 18.12 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006142/1.209, allocations: 301.8 kB / 0.6171 GB, free: 17.82 MB / 395.1 MB Notification: Performance of pre-optimization done (n=49): time 3.887e-06/1.209, allocations: 0 / 0.6171 GB, free: 17.82 MB / 395.1 MB Notification: Performance of matching and sorting (n=49): time 0.001788/1.211, allocations: 0.7857 MB / 0.6179 GB, free: 17.02 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.093e-05/1.211, allocations: 269 kB / 0.6181 GB, free: 16.7 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004071/1.215, allocations: 2.322 MB / 0.6204 GB, free: 14.37 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001575/1.215, allocations: 29.7 kB / 0.6204 GB, free: 14.34 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001364/1.216, allocations: 1.24 MB / 0.6216 GB, free: 13.09 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002252/1.217, allocations: 161.8 kB / 0.6218 GB, free: 12.93 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.056e-05/1.217, allocations: 0 / 0.6218 GB, free: 12.93 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 8.177e-05/1.217, allocations: 346.8 kB / 0.6221 GB, free: 12.58 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004189/1.217, allocations: 174.6 kB / 0.6223 GB, free: 12.41 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005971/1.218, allocations: 0.5745 MB / 0.6228 GB, free: 11.63 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006418/1.218, allocations: 268.5 kB / 0.6231 GB, free: 11.37 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.859e-06/1.218, allocations: 0 / 0.6231 GB, free: 11.37 MB / 395.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001685/1.22, allocations: 0.7216 MB / 0.6238 GB, free: 10.64 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/1.22, allocations: 12 kB / 0.6238 GB, free: 10.63 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001533/1.22, allocations: 83.92 kB / 0.6239 GB, free: 10.55 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.998e-05/1.22, allocations: 20 kB / 0.6239 GB, free: 10.53 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/1.222, allocations: 216.2 kB / 0.6241 GB, free: 10.32 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.312e-05/1.222, allocations: 23.92 kB / 0.6241 GB, free: 10.3 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001993/1.224, allocations: 110.9 kB / 0.6243 GB, free: 10.19 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001927/1.224, allocations: 71.95 kB / 0.6243 GB, free: 10.12 MB / 395.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.0002364/1.224, allocations: 140.7 kB / 0.6245 GB, free: 9.973 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001725/1.226, allocations: 0.7742 MB / 0.6252 GB, free: 9.188 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000472/1.226, allocations: 387.3 kB / 0.6256 GB, free: 8.805 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004288/1.231, allocations: 1.124 MB / 0.6267 GB, free: 7.676 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/1.231, allocations: 8 kB / 0.6267 GB, free: 7.668 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/1.231, allocations: 3.953 kB / 0.6267 GB, free: 7.664 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/1.231, allocations: 3.984 kB / 0.6267 GB, free: 7.66 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004694/1.236, allocations: 2.002 MB / 0.6287 GB, free: 5.602 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001385/1.236, allocations: 71.98 kB / 0.6287 GB, free: 5.531 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009059/1.237, allocations: 103.9 kB / 0.6288 GB, free: 5.43 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/1.237, allocations: 3.938 kB / 0.6288 GB, free: 5.426 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.951e-05/1.237, allocations: 35.94 kB / 0.6289 GB, free: 5.391 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/1.237, allocations: 4 kB / 0.6289 GB, free: 5.387 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/1.237, allocations: 0 / 0.6289 GB, free: 5.387 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002187/1.239, allocations: 1.195 MB / 0.63 GB, free: 4.145 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/1.24, allocations: 0.5529 MB / 0.6306 GB, free: 3.555 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005921/1.241, allocations: 15.98 kB / 0.6306 GB, free: 3.539 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001417/1.242, allocations: 36.03 kB / 0.6306 GB, free: 3.504 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/1.243, allocations: 59.92 kB / 0.6307 GB, free: 3.445 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/1.243, allocations: 43.98 kB / 0.6307 GB, free: 3.402 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.003401/1.246, allocations: 1.717 MB / 0.6324 GB, free: 1.688 MB / 395.1 MB Notification: Performance of sort global known variables: time 7.11e-07/1.246, allocations: 0 / 0.6324 GB, free: 1.688 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002283/1.249, allocations: 0.6088 MB / 0.633 GB, free: 1.078 MB / 395.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.004434/1.253, allocations: 2.678 MB / 0.6356 GB, free: 14.37 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.001614/1.255, allocations: 0.6646 MB / 0.6363 GB, free: 13.68 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.255, allocations: 3.859 kB / 0.6363 GB, free: 13.68 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007623/1.255, allocations: 392.1 kB / 0.6366 GB, free: 13.27 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003014/1.259, allocations: 0.4908 MB / 0.6371 GB, free: 12.77 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/1.269, allocations: 3.674 MB / 0.6407 GB, free: 9.035 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00162/1.271, allocations: 1.728 MB / 0.6424 GB, free: 7.281 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002134/1.273, allocations: 1.223 MB / 0.6436 GB, free: 6.059 MB / 411.1 MB Notification: Performance of SimCode: time 1.573e-06/1.273, allocations: 0 / 0.6436 GB, free: 6.059 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.642/4.915, allocations: 48.43 MB / 0.6909 GB, free: 84.59 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat