Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.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.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",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.001571/0.001571, allocations: 177.1 kB / 8.35 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.407/1.407, allocations: 221.5 MB / 230.3 MB, free: 7.535 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.0008421/0.000842, allocations: 93.02 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.021e-05/2.024e-05, allocations: 4 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1281, allocations: 50.41 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4452/0.5733, allocations: 82.08 MB / 469.6 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003122/0.5737, allocations: 75.95 kB / 469.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05225/0.6259, allocations: 15.32 MB / 485 MB, free: 13.08 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.626, allocations: 7.875 kB / 485 MB, free: 13.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.063e-05/0.626, allocations: 8 kB / 485 MB, free: 13.06 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.002236/0.6282, allocations: 0.7415 MB / 485.8 MB, free: 12.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.6283, allocations: 8.031 kB / 485.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003891/0.6322, allocations: 363 kB / 486.1 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005623/0.6328, allocations: 298.4 kB / 486.4 MB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.561e-05/0.6328, allocations: 19.98 kB / 486.5 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.633, allocations: 31.94 kB / 486.5 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001255/0.6342, allocations: 0.4946 MB / 487 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.6353, allocations: 396 kB / 487.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.733e-05/0.6353, allocations: 0 / 487.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.676e-05/0.6354, allocations: 4 kB / 487.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/0.6354, allocations: 19.95 kB / 487.4 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003888/0.6393, allocations: 1.789 MB / 489.2 MB, free: 8.727 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002679/0.642, allocations: 2.138 MB / 491.3 MB, free: 6.195 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003852/0.6424, allocations: 179.2 kB / 491.5 MB, free: 6.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001271/0.6426, allocations: 85.55 kB / 491.6 MB, free: 5.918 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/0.6426, allocations: 46.98 kB / 491.6 MB, free: 5.863 MB / 362.7 MB Notification: Performance of pre-optimization done (n=47): time 3.035e-06/0.6426, allocations: 0 / 491.6 MB, free: 5.863 MB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.001652/0.6443, allocations: 468.4 kB / 492.1 MB, free: 5.398 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.6444, allocations: 55.84 kB / 492.1 MB, free: 5.328 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.6446, allocations: 145.4 kB / 492.3 MB, free: 5.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.024e-05/0.6446, allocations: 25.7 kB / 492.3 MB, free: 5.148 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.6448, allocations: 228.3 kB / 492.5 MB, free: 4.922 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.645, allocations: 157.6 kB / 492.7 MB, free: 4.766 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.84e-05/0.645, allocations: 0 / 492.7 MB, free: 4.766 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.6452, allocations: 334.8 kB / 493 MB, free: 4.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003021/0.6455, allocations: 129.1 kB / 493.1 MB, free: 4.305 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003736/0.6459, allocations: 187.8 kB / 493.3 MB, free: 4.094 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009078/0.6468, allocations: 248.5 kB / 493.6 MB, free: 3.852 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.6468, allocations: 0 / 493.6 MB, free: 3.852 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00175/0.6486, allocations: 0.5395 MB / 494.1 MB, free: 3.301 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.6486, allocations: 4 kB / 494.1 MB, free: 3.297 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.6486, allocations: 4 kB / 494.1 MB, free: 3.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000452/0.6491, allocations: 84.91 kB / 494.2 MB, free: 3.207 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005766/0.6497, allocations: 95.83 kB / 494.3 MB, free: 3.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002478/0.6522, allocations: 1.771 MB / 496.1 MB, free: 1.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004116/0.6526, allocations: 39.58 kB / 496.1 MB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.352e-05/0.6527, allocations: 24.05 kB / 496.1 MB, free: 1.168 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000161/0.6528, allocations: 114.6 kB / 496.2 MB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001501/0.6543, allocations: 464.4 kB / 496.7 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.65e-05/0.6545, allocations: 23.72 kB / 496.7 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00172/0.6562, allocations: 0.5499 MB / 497.3 MB, free: 4 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.717e-06/0.6562, allocations: 4 kB / 497.3 MB, free: 0 / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-05/0.6563, allocations: 8 kB / 497.3 MB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.6563, allocations: 3.938 kB / 497.3 MB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002489/0.6588, allocations: 1.036 MB / 498.3 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.6588, allocations: 4.188 kB / 498.3 MB, free: 14.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005079/0.6593, allocations: 79.86 kB / 498.4 MB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003687/0.6597, allocations: 84.69 kB / 498.5 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-05/0.6598, allocations: 7.984 kB / 498.5 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002407/0.6622, allocations: 1.759 MB / 0.4885 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.6622, allocations: 0 / 0.4885 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001887/0.6641, allocations: 0.7726 MB / 0.4893 GB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.6643, allocations: 112.7 kB / 0.4894 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.247e-05/0.6643, allocations: 3.984 kB / 0.4894 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003247/0.6646, allocations: 8 kB / 0.4894 GB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.6648, allocations: 40.38 kB / 0.4894 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.063e-05/0.6648, allocations: 16 kB / 0.4894 GB, free: 11.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001333/0.665, allocations: 119.3 kB / 0.4896 GB, free: 11.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.615e-06/0.665, allocations: 0 / 0.4896 GB, free: 11.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009369/0.6659, allocations: 139.5 kB / 0.4897 GB, free: 11.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (capacitor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00236/0.6683, allocations: 1.353 MB / 0.491 GB, free: 10.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.6695, allocations: 0.4969 MB / 0.4915 GB, free: 9.719 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.6695, allocations: 0 / 0.4915 GB, free: 9.719 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006271/0.6702, allocations: 351.8 kB / 0.4918 GB, free: 9.363 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.6705, allocations: 6.438 kB / 0.4918 GB, free: 9.359 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.6724, allocations: 0.609 MB / 0.4924 GB, free: 8.715 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004768/0.6729, allocations: 0.8205 MB / 0.4932 GB, free: 7.871 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003345/0.6732, allocations: 43.27 kB / 0.4933 GB, free: 7.828 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002552/0.6735, allocations: 131.4 kB / 0.4934 GB, free: 7.699 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.6735, allocations: 0 / 0.4934 GB, free: 7.699 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03388/0.7074, allocations: 6.072 MB / 0.4993 GB, free: 1.652 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002794/0.7077, allocations: 167.2 kB / 0.4995 GB, free: 1.457 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.613, allocations: 0 / 0.4995 GB, free: 1.457 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat