Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_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.001136/0.001136, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.377/1.377, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008183/0.0008183, allocations: 86.69 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.848e-05/2.852e-05, allocations: 0 / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08121/0.08125, allocations: 47.57 MB / 370.1 MB, free: 1.641 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3132/0.3945, allocations: 102.2 MB / 472.3 MB, free: 7.336 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002087/0.3948, allocations: 69.72 kB / 472.4 MB, free: 7.305 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.436/0.8308, allocations: 125.5 MB / 0.5839 GB, free: 89.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.8308, allocations: 0 / 0.5839 GB, free: 89.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.221e-05/0.8309, allocations: 46.66 kB / 0.5839 GB, free: 89.96 MB / 410.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.004154/0.8351, allocations: 2.715 MB / 0.5866 GB, free: 88.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.8352, allocations: 11.56 kB / 0.5866 GB, free: 88.29 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001355/0.8353, allocations: 99.11 kB / 0.5867 GB, free: 88.21 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004823/0.8358, allocations: 400.5 kB / 0.5871 GB, free: 88.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003471/0.8393, allocations: 2.362 MB / 0.5894 GB, free: 86.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.856e-05/0.8393, allocations: 41.98 kB / 0.5894 GB, free: 86.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.8394, allocations: 58.5 kB / 0.5895 GB, free: 86.88 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.8404, allocations: 0.7841 MB / 0.5902 GB, free: 86.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.8405, allocations: 0 / 0.5902 GB, free: 86.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.867e-05/0.8405, allocations: 23.94 kB / 0.5902 GB, free: 86.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/0.8406, allocations: 22.88 kB / 0.5903 GB, free: 86.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008945/0.8415, allocations: 0.7127 MB / 0.591 GB, free: 86.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004902/0.8464, allocations: 3.19 MB / 0.5941 GB, free: 84.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005861/0.847, allocations: 499.8 kB / 0.5946 GB, free: 84.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006014/0.8476, allocations: 0.5876 MB / 0.5951 GB, free: 84.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02622/0.8738, allocations: 36.18 MB / 0.6305 GB, free: 45.91 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004787/0.8744, allocations: 317.6 kB / 0.6308 GB, free: 45.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 2.505e-06/0.8744, allocations: 0 / 0.6308 GB, free: 45.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001262/0.8757, allocations: 0.8015 MB / 0.6316 GB, free: 44.78 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.019e-05/0.8757, allocations: 273 kB / 0.6318 GB, free: 44.45 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002884/0.8786, allocations: 2.516 MB / 0.6343 GB, free: 41.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.934e-05/0.8787, allocations: 37.7 kB / 0.6343 GB, free: 41.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009243/0.8796, allocations: 1.509 MB / 0.6358 GB, free: 40.36 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.8798, allocations: 161.7 kB / 0.6359 GB, free: 40.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.894e-05/0.8798, allocations: 16 kB / 0.6359 GB, free: 40.19 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.43e-05/0.8799, allocations: 341.9 kB / 0.6363 GB, free: 39.85 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002816/0.8802, allocations: 186 kB / 0.6364 GB, free: 39.67 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000424/0.8806, allocations: 0.5933 MB / 0.637 GB, free: 38.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000376/0.881, allocations: 296.2 kB / 0.6373 GB, free: 38.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.881, allocations: 4 kB / 0.6373 GB, free: 38.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001451/0.8825, allocations: 1.132 MB / 0.6384 GB, free: 37.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.8825, allocations: 8 kB / 0.6384 GB, free: 37.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.689e-05/0.8826, allocations: 87.98 kB / 0.6385 GB, free: 37.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.634e-05/0.8826, allocations: 16 kB / 0.6385 GB, free: 37.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007092/0.8833, allocations: 215.8 kB / 0.6387 GB, free: 37.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.171e-05/0.8834, allocations: 23.89 kB / 0.6388 GB, free: 37.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/0.8847, allocations: 127 kB / 0.6389 GB, free: 36.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.53e-05/0.8847, allocations: 60 kB / 0.6389 GB, free: 36.92 MB / 410.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.0001518/0.8849, allocations: 168.6 kB / 0.6391 GB, free: 36.75 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002953/0.8852, allocations: 391.3 kB / 0.6395 GB, free: 36.36 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002487/0.8877, allocations: 1.143 MB / 0.6406 GB, free: 35.21 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.8877, allocations: 8 kB / 0.6406 GB, free: 35.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.8877, allocations: 0 / 0.6406 GB, free: 35.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.301e-06/0.8877, allocations: 7.938 kB / 0.6406 GB, free: 35.19 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00273/0.8905, allocations: 2.101 MB / 0.6427 GB, free: 33.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.176e-05/0.8906, allocations: 80.05 kB / 0.6427 GB, free: 32.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004571/0.891, allocations: 99.84 kB / 0.6428 GB, free: 32.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.891, allocations: 4 kB / 0.6428 GB, free: 32.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.084e-05/0.8911, allocations: 35.95 kB / 0.6429 GB, free: 32.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.8911, allocations: 8 kB / 0.6429 GB, free: 32.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.8911, allocations: 3.984 kB / 0.6429 GB, free: 32.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.8923, allocations: 1.21 MB / 0.6441 GB, free: 31.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007466/0.8931, allocations: 0.5606 MB / 0.6446 GB, free: 30.94 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002941/0.8934, allocations: 16.06 kB / 0.6446 GB, free: 30.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006973/0.8941, allocations: 43.89 kB / 0.6447 GB, free: 30.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.8943, allocations: 67.94 kB / 0.6447 GB, free: 30.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.859e-05/0.8943, allocations: 35.98 kB / 0.6448 GB, free: 30.78 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002102/0.8964, allocations: 1.923 MB / 0.6466 GB, free: 28.85 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.8964, allocations: 0 / 0.6466 GB, free: 28.85 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001402/0.8978, allocations: 0.6479 MB / 0.6473 GB, free: 28.2 MB / 410.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.002422/0.9003, allocations: 2.62 MB / 0.6498 GB, free: 25.54 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009484/0.9012, allocations: 0.7045 MB / 0.6505 GB, free: 24.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.9013, allocations: 0 / 0.6505 GB, free: 24.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003817/0.9016, allocations: 391.1 kB / 0.6509 GB, free: 24.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.9032, allocations: 0.5052 MB / 0.6514 GB, free: 23.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005323/0.9085, allocations: 3.643 MB / 0.6549 GB, free: 20.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007681/0.9093, allocations: 1.732 MB / 0.6566 GB, free: 18.45 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001121/0.9105, allocations: 382.5 kB / 0.657 GB, free: 18.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008974/0.9114, allocations: 1.214 MB / 0.6582 GB, free: 16.85 MB / 410.7 MB Notification: Performance of SimCode: time 1.322e-06/0.9114, allocations: 0 / 0.6582 GB, free: 16.85 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3072/1.219, allocations: 58.92 MB / 0.7157 GB, free: 102.4 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002245/1.219, allocations: 178 kB / 0.7159 GB, free: 102.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.568/5.787, allocations: 0 / 0.7159 GB, free: 102.2 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat