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.001019/0.001019, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.468/1.468, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008378/0.0008375, allocations: 86.36 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.021e-05/2.023e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0893/0.08934, allocations: 47.58 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3704/0.4598, allocations: 101.8 MB / 464.9 MB, free: 9.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001985/0.4601, allocations: 74.58 kB / 465 MB, free: 9.801 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4851/0.9452, allocations: 120.3 MB / 0.5716 GB, free: 92.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.9453, allocations: 4 kB / 0.5716 GB, free: 92.29 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.067e-05/0.9453, allocations: 46.53 kB / 0.5716 GB, free: 92.29 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.004362/0.9497, allocations: 2.718 MB / 0.5743 GB, free: 90.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.9498, allocations: 7 kB / 0.5743 GB, free: 90.8 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004669/0.9502, allocations: 397.5 kB / 0.5747 GB, free: 90.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00346/0.9537, allocations: 2.365 MB / 0.577 GB, free: 89.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.051e-05/0.9538, allocations: 23.7 kB / 0.577 GB, free: 89.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.9539, allocations: 36.28 kB / 0.577 GB, free: 89.94 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009517/0.9548, allocations: 0.6882 MB / 0.5777 GB, free: 89.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009413/0.9558, allocations: 0.7269 MB / 0.5784 GB, free: 89.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.9558, allocations: 0 / 0.5784 GB, free: 89.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.5e-05/0.9559, allocations: 0 / 0.5784 GB, free: 89.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.568e-05/0.9559, allocations: 21.44 kB / 0.5785 GB, free: 89.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00502/0.9609, allocations: 3.069 MB / 0.5814 GB, free: 88.38 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005618/0.9615, allocations: 479.2 kB / 0.5819 GB, free: 88.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005907/0.9621, allocations: 0.5659 MB / 0.5825 GB, free: 87.85 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02879/0.9909, allocations: 36.16 MB / 0.6178 GB, free: 58.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004288/0.9914, allocations: 307.2 kB / 0.6181 GB, free: 58.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 2.455e-06/0.9914, allocations: 0 / 0.6181 GB, free: 58.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.00127/0.9927, allocations: 0.7901 MB / 0.6188 GB, free: 58.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.922e-05/0.9928, allocations: 264.9 kB / 0.6191 GB, free: 58.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002885/0.9957, allocations: 2.322 MB / 0.6214 GB, free: 56.06 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.586e-05/0.9958, allocations: 29.7 kB / 0.6214 GB, free: 56.02 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00101/0.9968, allocations: 1.505 MB / 0.6229 GB, free: 54.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.9969, allocations: 161.8 kB / 0.623 GB, free: 54.35 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.158e-05/0.9969, allocations: 0 / 0.623 GB, free: 54.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.105e-05/0.997, allocations: 345.9 kB / 0.6233 GB, free: 54 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002358/0.9973, allocations: 170.6 kB / 0.6235 GB, free: 53.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004292/0.9977, allocations: 0.5781 MB / 0.6241 GB, free: 53.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004032/0.9981, allocations: 268.7 kB / 0.6243 GB, free: 52.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.136e-06/0.9981, allocations: 4 kB / 0.6243 GB, free: 52.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00144/0.9996, allocations: 1.031 MB / 0.6253 GB, free: 51.76 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.9996, allocations: 16.03 kB / 0.6253 GB, free: 51.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001096/0.9997, allocations: 83.98 kB / 0.6254 GB, free: 51.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.239e-05/0.9998, allocations: 20 kB / 0.6254 GB, free: 51.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006979/1, allocations: 207.6 kB / 0.6256 GB, free: 51.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.591e-05/1, allocations: 27.92 kB / 0.6257 GB, free: 51.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/1.002, allocations: 103.1 kB / 0.6258 GB, free: 51.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.078e-05/1.002, allocations: 71.89 kB / 0.6258 GB, free: 51.24 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.0001668/1.002, allocations: 145.3 kB / 0.626 GB, free: 51.09 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008686/1.003, allocations: 0.7859 MB / 0.6267 GB, free: 50.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002546/1.003, allocations: 383.3 kB / 0.6271 GB, free: 49.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002479/1.006, allocations: 1.107 MB / 0.6282 GB, free: 48.81 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/1.006, allocations: 8 kB / 0.6282 GB, free: 48.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/1.006, allocations: 10.52 kB / 0.6282 GB, free: 48.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/1.006, allocations: 3.938 kB / 0.6282 GB, free: 48.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00282/1.009, allocations: 2.006 MB / 0.6302 GB, free: 46.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.153e-05/1.009, allocations: 72.05 kB / 0.6302 GB, free: 46.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004775/1.009, allocations: 103.9 kB / 0.6303 GB, free: 46.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.842e-06/1.009, allocations: 0 / 0.6303 GB, free: 46.57 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.104e-05/1.009, allocations: 31.94 kB / 0.6304 GB, free: 46.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.87e-06/1.009, allocations: 8 kB / 0.6304 GB, free: 46.53 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.009, allocations: 0 / 0.6304 GB, free: 46.53 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001242/1.01, allocations: 1.186 MB / 0.6315 GB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007738/1.011, allocations: 0.5607 MB / 0.6321 GB, free: 44.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002984/1.012, allocations: 12.05 kB / 0.6321 GB, free: 44.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008128/1.012, allocations: 35.97 kB / 0.6321 GB, free: 44.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/1.013, allocations: 67.92 kB / 0.6322 GB, free: 44.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.418e-05/1.013, allocations: 32 kB / 0.6322 GB, free: 44.56 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002076/1.015, allocations: 1.721 MB / 0.6339 GB, free: 42.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.015, allocations: 0 / 0.6339 GB, free: 42.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001478/1.016, allocations: 0.6166 MB / 0.6345 GB, free: 42.22 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.002685/1.019, allocations: 2.68 MB / 0.6371 GB, free: 39.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009366/1.02, allocations: 0.6646 MB / 0.6378 GB, free: 38.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/1.02, allocations: 0 / 0.6378 GB, free: 38.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003719/1.02, allocations: 387.1 kB / 0.6381 GB, free: 38.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001527/1.022, allocations: 495.2 kB / 0.6386 GB, free: 38.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005835/1.028, allocations: 3.616 MB / 0.6421 GB, free: 34.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008803/1.028, allocations: 1.728 MB / 0.6438 GB, free: 32.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001186/1.03, allocations: 382.7 kB / 0.6442 GB, free: 32.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000942/1.031, allocations: 1.214 MB / 0.6454 GB, free: 31.02 MB / 410.7 MB Notification: Performance of SimCode: time 1.182e-06/1.031, allocations: 0 / 0.6454 GB, free: 31.02 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3498/1.38, allocations: 53.7 MB / 0.6978 GB, free: 100.2 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/1.381, allocations: 145.5 kB / 0.698 GB, free: 100 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.519/5.9, allocations: 0 / 0.698 GB, free: 100 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