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.001436/0.001436, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 221.5 MB / 230.3 MB, free: 7.512 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.0008131/0.0008131, allocations: 104.5 kB / 281.2 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.799e-05/1.784e-05, allocations: 0 / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1007, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3913/0.492, allocations: 103.5 MB / 491.1 MB, free: 7.129 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/0.4923, allocations: 71.95 kB / 491.2 MB, free: 7.059 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5835/1.076, allocations: 135.8 MB / 0.6123 GB, free: 91.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.076, allocations: 0 / 0.6123 GB, free: 91.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.219e-05/1.076, allocations: 47.84 kB / 0.6123 GB, free: 91.08 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.003877/1.08, allocations: 2.7 MB / 0.6149 GB, free: 89.15 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/1.08, allocations: 10.19 kB / 0.615 GB, free: 89.15 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003308/1.08, allocations: 400.5 kB / 0.6153 GB, free: 88.95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002864/1.083, allocations: 2.348 MB / 0.6176 GB, free: 87.33 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/1.083, allocations: 15.31 kB / 0.6176 GB, free: 87.33 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/1.083, allocations: 36.47 kB / 0.6177 GB, free: 87.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008701/1.084, allocations: 0.6869 MB / 0.6184 GB, free: 87.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009208/1.085, allocations: 0.7247 MB / 0.6191 GB, free: 86.63 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/1.085, allocations: 3.938 kB / 0.6191 GB, free: 86.63 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-05/1.085, allocations: 0 / 0.6191 GB, free: 86.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/1.085, allocations: 23.16 kB / 0.6191 GB, free: 86.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004445/1.09, allocations: 3.066 MB / 0.6221 GB, free: 83.75 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004981/1.09, allocations: 467.9 kB / 0.6225 GB, free: 83.28 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005027/1.091, allocations: 0.5771 MB / 0.6231 GB, free: 82.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02618/1.117, allocations: 36.05 MB / 0.6583 GB, free: 41.56 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003913/1.117, allocations: 317.8 kB / 0.6586 GB, free: 41.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.415e-06/1.117, allocations: 0 / 0.6586 GB, free: 41.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001118/1.118, allocations: 0.7704 MB / 0.6594 GB, free: 40.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.734e-05/1.118, allocations: 271.2 kB / 0.6596 GB, free: 40.13 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002549/1.121, allocations: 2.297 MB / 0.6619 GB, free: 37.83 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.178e-05/1.121, allocations: 29.7 kB / 0.6619 GB, free: 37.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009292/1.122, allocations: 1.493 MB / 0.6633 GB, free: 36.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/1.122, allocations: 161.7 kB / 0.6635 GB, free: 36.13 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.292e-05/1.122, allocations: 4 kB / 0.6635 GB, free: 36.13 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.138e-05/1.122, allocations: 345.9 kB / 0.6638 GB, free: 35.79 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002322/1.123, allocations: 170.6 kB / 0.664 GB, free: 35.62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000358/1.123, allocations: 0.5858 MB / 0.6646 GB, free: 34.83 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003674/1.123, allocations: 266.6 kB / 0.6648 GB, free: 34.57 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.271e-06/1.123, allocations: 4 kB / 0.6648 GB, free: 34.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001272/1.125, allocations: 1.027 MB / 0.6658 GB, free: 33.54 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/1.125, allocations: 12.25 kB / 0.6658 GB, free: 33.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.493e-05/1.125, allocations: 83.98 kB / 0.6659 GB, free: 33.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.761e-05/1.125, allocations: 20 kB / 0.6659 GB, free: 33.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007019/1.125, allocations: 207.6 kB / 0.6661 GB, free: 33.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/1.125, allocations: 31.92 kB / 0.6662 GB, free: 33.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001171/1.127, allocations: 111 kB / 0.6663 GB, free: 33.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.724e-05/1.127, allocations: 60 kB / 0.6663 GB, free: 33.02 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.0001514/1.127, allocations: 154.6 kB / 0.6665 GB, free: 32.87 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008611/1.128, allocations: 0.7741 MB / 0.6672 GB, free: 32.08 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002698/1.128, allocations: 383.4 kB / 0.6676 GB, free: 31.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002521/1.131, allocations: 1.113 MB / 0.6687 GB, free: 30.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/1.131, allocations: 7.938 kB / 0.6687 GB, free: 30.58 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/1.131, allocations: 4 kB / 0.6687 GB, free: 30.58 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/1.131, allocations: 4 kB / 0.6687 GB, free: 30.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002662/1.133, allocations: 1.993 MB / 0.6706 GB, free: 28.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.26e-05/1.133, allocations: 75.92 kB / 0.6707 GB, free: 28.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004752/1.134, allocations: 99.98 kB / 0.6708 GB, free: 28.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/1.134, allocations: 0 / 0.6708 GB, free: 28.36 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.93e-05/1.134, allocations: 35.92 kB / 0.6708 GB, free: 28.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/1.134, allocations: 7.938 kB / 0.6709 GB, free: 28.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.134, allocations: 3.953 kB / 0.6709 GB, free: 28.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/1.135, allocations: 1.184 MB / 0.672 GB, free: 27.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007426/1.136, allocations: 0.549 MB / 0.6725 GB, free: 26.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003087/1.136, allocations: 11.98 kB / 0.6726 GB, free: 26.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007077/1.137, allocations: 36.03 kB / 0.6726 GB, free: 26.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/1.137, allocations: 55.94 kB / 0.6726 GB, free: 26.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.929e-05/1.137, allocations: 43.98 kB / 0.6727 GB, free: 26.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001876/1.139, allocations: 1.709 MB / 0.6744 GB, free: 24.65 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.31e-07/1.139, allocations: 0 / 0.6744 GB, free: 24.65 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001417/1.14, allocations: 0.601 MB / 0.6749 GB, free: 24.05 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.002565/1.143, allocations: 2.681 MB / 0.6776 GB, free: 21.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001082/1.144, allocations: 0.6605 MB / 0.6782 GB, free: 20.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/1.144, allocations: 1.25 kB / 0.6782 GB, free: 20.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004045/1.144, allocations: 386.7 kB / 0.6786 GB, free: 20.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002414/1.147, allocations: 0.5936 MB / 0.6792 GB, free: 19.72 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005817/1.153, allocations: 3.57 MB / 0.6826 GB, free: 16.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008505/1.154, allocations: 1.72 MB / 0.6843 GB, free: 14.35 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001263/1.155, allocations: 386.4 kB / 0.6847 GB, free: 13.96 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009567/1.156, allocations: 1.206 MB / 0.6859 GB, free: 12.76 MB / 426.7 MB Notification: Performance of SimCode: time 1.162e-06/1.156, allocations: 0 / 0.6859 GB, free: 12.76 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3646/1.52, allocations: 53.49 MB / 0.7381 GB, free: 106.4 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/1.521, allocations: 154.8 kB / 0.7382 GB, free: 106.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.563/6.084, allocations: 0 / 0.7382 GB, free: 106.2 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