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.001545/0.001545, allocations: 182.2 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.973/1.973, allocations: 205.4 MB / 222.5 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001163/0.001163, allocations: 89.36 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004214/0.0004212, allocations: 8 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3438, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1668/0.5107, allocations: 102.3 MB / 476.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/0.511, allocations: 71.95 kB / 477 MB, free: 10.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6667/1.178, allocations: 125.6 MB / 0.5885 GB, free: 24.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.785e-06/1.178, allocations: 0 / 0.5885 GB, free: 24.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002002/1.178, allocations: 44 kB / 0.5885 GB, free: 24.47 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.008914/1.187, allocations: 3.45 MB / 0.5919 GB, free: 20.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/1.187, allocations: 8.031 kB / 0.5919 GB, free: 20.95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003576/1.187, allocations: 94.52 kB / 0.592 GB, free: 20.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007771/1.188, allocations: 411.2 kB / 0.5924 GB, free: 20.44 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006364/1.195, allocations: 2.383 MB / 0.5947 GB, free: 17.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.301e-05/1.195, allocations: 48.88 kB / 0.5948 GB, free: 17.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002163/1.195, allocations: 55.91 kB / 0.5948 GB, free: 17.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002388/1.197, allocations: 0.8652 MB / 0.5957 GB, free: 16.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.307e-05/1.197, allocations: 0 / 0.5957 GB, free: 16.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001338/1.197, allocations: 20 kB / 0.5957 GB, free: 16.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.177e-05/1.198, allocations: 27.92 kB / 0.5957 GB, free: 16.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002753/1.2, allocations: 0.8515 MB / 0.5965 GB, free: 16.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008919/1.209, allocations: 3.198 MB / 0.5997 GB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002072/1.211, allocations: 0.6181 MB / 0.6003 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05258/1.264, allocations: 36.02 MB / 0.6354 GB, free: 3.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001302/1.265, allocations: 389.4 kB / 0.6358 GB, free: 2.629 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.276e-06/1.265, allocations: 0 / 0.6358 GB, free: 2.629 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.004387/1.27, allocations: 1.474 MB / 0.6372 GB, free: 1.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/1.27, allocations: 269 kB / 0.6375 GB, free: 0.7461 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005955/1.276, allocations: 2.559 MB / 0.64 GB, free: 14.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001801/1.276, allocations: 41.69 kB / 0.64 GB, free: 14.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001753/1.278, allocations: 1.232 MB / 0.6412 GB, free: 12.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003376/1.278, allocations: 177.6 kB / 0.6414 GB, free: 12.72 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.794e-05/1.278, allocations: 16 kB / 0.6414 GB, free: 12.71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/1.279, allocations: 342.8 kB / 0.6417 GB, free: 12.36 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/1.28, allocations: 261.9 kB / 0.642 GB, free: 12.11 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/1.281, allocations: 0.6673 MB / 0.6427 GB, free: 11.24 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/1.282, allocations: 344.5 kB / 0.643 GB, free: 10.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.338e-05/1.282, allocations: 4 kB / 0.643 GB, free: 10.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003158/1.286, allocations: 0.9516 MB / 0.6439 GB, free: 9.941 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.518e-05/1.286, allocations: 12 kB / 0.6439 GB, free: 9.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001816/1.286, allocations: 80.89 kB / 0.644 GB, free: 9.852 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.784e-05/1.286, allocations: 20 kB / 0.644 GB, free: 9.832 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/1.287, allocations: 215.6 kB / 0.6442 GB, free: 9.621 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.059e-05/1.287, allocations: 31.81 kB / 0.6443 GB, free: 9.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/1.29, allocations: 119.1 kB / 0.6444 GB, free: 9.473 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002066/1.29, allocations: 67.98 kB / 0.6444 GB, free: 9.406 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 () * Number of clocked 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.001504/1.291, allocations: 436 kB / 0.6449 GB, free: 8.973 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008158/1.292, allocations: 387.3 kB / 0.6452 GB, free: 8.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005753/1.298, allocations: 1.303 MB / 0.6465 GB, free: 7.281 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/1.298, allocations: 4 kB / 0.6465 GB, free: 7.277 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/1.298, allocations: 0 / 0.6465 GB, free: 7.277 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/1.298, allocations: 11.95 kB / 0.6465 GB, free: 7.266 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006592/1.305, allocations: 2.237 MB / 0.6487 GB, free: 4.953 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001623/1.305, allocations: 67.98 kB / 0.6488 GB, free: 4.887 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009607/1.306, allocations: 111.9 kB / 0.6489 GB, free: 4.777 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.246e-05/1.306, allocations: 4 kB / 0.6489 GB, free: 4.773 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/1.306, allocations: 31.95 kB / 0.6489 GB, free: 4.742 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.873e-06/1.306, allocations: 0 / 0.6489 GB, free: 4.742 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/1.306, allocations: 4 kB / 0.6489 GB, free: 4.738 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004368/1.31, allocations: 1.428 MB / 0.6503 GB, free: 3.266 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001612/1.312, allocations: 0.5489 MB / 0.6508 GB, free: 2.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006499/1.313, allocations: 23.98 kB / 0.6509 GB, free: 2.656 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/1.314, allocations: 35.97 kB / 0.6509 GB, free: 2.621 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002723/1.314, allocations: 67.98 kB / 0.651 GB, free: 2.555 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/1.315, allocations: 36 kB / 0.651 GB, free: 2.52 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004863/1.319, allocations: 1.959 MB / 0.6529 GB, free: 0.5625 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.319, allocations: 0 / 0.6529 GB, free: 0.5625 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.2924/1.612, allocations: 0.6481 MB / 0.6535 GB, free: 100.1 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) * Number of clocked states: 0 () * 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.005924/1.618, allocations: 2.832 MB / 0.6563 GB, free: 99.17 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002584/1.621, allocations: 0.8445 MB / 0.6571 GB, free: 99.04 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/1.621, allocations: 1.188 kB / 0.6571 GB, free: 99.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001219/1.622, allocations: 466.3 kB / 0.6576 GB, free: 98.91 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002855/1.625, allocations: 0.4954 MB / 0.6581 GB, free: 98.88 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04835/1.673, allocations: 26.86 MB / 0.6843 GB, free: 80.45 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/1.674, allocations: 1.727 MB / 0.686 GB, free: 79.72 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001813/1.676, allocations: 1.225 MB / 0.6872 GB, free: 79.71 MB / 426.7 MB Notification: Performance of SimCode: time 1.442e-06/1.676, allocations: 0 / 0.6872 GB, free: 79.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.477/5.154, allocations: 49.74 MB / 0.7357 GB, free: 60.63 MB / 426.7 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