Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.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.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_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.001477/0.001477, allocations: 176.4 kB / 8.346 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.538/1.538, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0009003/0.0009004, allocations: 90.11 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.168e-05/2.161e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1025, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3085/0.4111, allocations: 78.66 MB / 466.2 MB, free: 56 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/0.4114, allocations: 75.95 kB / 466.3 MB, free: 15.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01569/0.4272, allocations: 5.057 MB / 471.3 MB, free: 10.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.4272, allocations: 0 / 471.3 MB, free: 10.91 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.787e-05/0.4273, allocations: 15.98 kB / 471.4 MB, free: 10.9 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001261/0.4285, allocations: 0.5459 MB / 471.9 MB, free: 10.31 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.896e-05/0.4286, allocations: 8.031 kB / 471.9 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.4288, allocations: 39.53 kB / 472 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005802/0.4294, allocations: 250.6 kB / 472.2 MB, free: 9.977 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.087e-05/0.4295, allocations: 11.95 kB / 472.2 MB, free: 9.965 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.972e-05/0.4295, allocations: 24 kB / 472.2 MB, free: 9.941 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004133/0.43, allocations: 153.5 kB / 472.4 MB, free: 9.793 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004918/0.4305, allocations: 210.1 kB / 472.6 MB, free: 9.578 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.4305, allocations: 3.984 kB / 472.6 MB, free: 9.574 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.237e-05/0.4305, allocations: 0 / 472.6 MB, free: 9.574 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.669e-05/0.4305, allocations: 12 kB / 472.6 MB, free: 9.562 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.4325, allocations: 0.9319 MB / 473.5 MB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002566/0.4328, allocations: 135.9 kB / 473.7 MB, free: 8.43 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.4329, allocations: 56.86 kB / 473.7 MB, free: 8.371 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.4329, allocations: 0 / 473.7 MB, free: 8.371 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.762e-05/0.433, allocations: 46.45 kB / 473.8 MB, free: 8.316 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.603e-06/0.433, allocations: 0 / 473.8 MB, free: 8.316 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003569/0.4334, allocations: 127.3 kB / 473.9 MB, free: 8.188 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.4334, allocations: 55.41 kB / 474 MB, free: 8.121 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.4336, allocations: 165.5 kB / 474.1 MB, free: 7.953 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.4337, allocations: 25.7 kB / 474.1 MB, free: 7.922 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.4339, allocations: 191.7 kB / 474.3 MB, free: 7.727 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.869e-05/0.4339, allocations: 63.09 kB / 474.4 MB, free: 7.664 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.228e-06/0.434, allocations: 0 / 474.4 MB, free: 7.664 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.4341, allocations: 326.8 kB / 474.7 MB, free: 7.336 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.965e-05/0.4342, allocations: 48 kB / 474.8 MB, free: 7.289 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.4344, allocations: 98.94 kB / 474.9 MB, free: 7.172 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001145/0.4345, allocations: 51.97 kB / 474.9 MB, free: 7.121 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4345, allocations: 4 kB / 474.9 MB, free: 7.117 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003539/0.4349, allocations: 194.8 kB / 475.1 MB, free: 6.922 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.4349, allocations: 4 kB / 475.1 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.435, allocations: 0 / 475.1 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.435, allocations: 7.953 kB / 475.1 MB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003047/0.4353, allocations: 67.91 kB / 475.2 MB, free: 6.844 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.4353, allocations: 0 / 475.2 MB, free: 6.844 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.4355, allocations: 31.94 kB / 475.2 MB, free: 6.812 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.4355, allocations: 19.86 kB / 475.2 MB, free: 6.793 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001133/0.4356, allocations: 106.8 kB / 475.3 MB, free: 6.684 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002281/0.4359, allocations: 129.4 kB / 475.5 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.54e-05/0.4359, allocations: 19.77 kB / 475.5 MB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000297/0.4362, allocations: 147.5 kB / 475.6 MB, free: 6.383 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.4363, allocations: 7.953 kB / 475.6 MB, free: 6.375 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.4363, allocations: 0 / 475.6 MB, free: 6.375 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.4363, allocations: 4 kB / 475.6 MB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003683/0.4367, allocations: 269.9 kB / 475.9 MB, free: 6.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4367, allocations: 0 / 475.9 MB, free: 6.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003039/0.437, allocations: 51.97 kB / 475.9 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.437, allocations: 0 / 475.9 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.437, allocations: 4 kB / 475.9 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.437, allocations: 0 / 475.9 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.437, allocations: 0 / 475.9 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000474/0.4375, allocations: 309.6 kB / 476.2 MB, free: 5.699 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.483e-05/0.4376, allocations: 88.92 kB / 476.3 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.4377, allocations: 0 / 476.3 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/0.4378, allocations: 15.98 kB / 476.4 MB, free: 5.578 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.551e-05/0.4379, allocations: 16.05 kB / 476.4 MB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.908e-05/0.438, allocations: 11.94 kB / 476.4 MB, free: 5.551 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001329/0.4381, allocations: 128.5 kB / 476.5 MB, free: 5.426 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4381, allocations: 0 / 476.5 MB, free: 5.426 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003849/0.4385, allocations: 79.62 kB / 476.6 MB, free: 5.348 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000945/0.4394, allocations: 0.8254 MB / 477.4 MB, free: 4.496 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003026/0.4398, allocations: 124.5 kB / 477.5 MB, free: 4.375 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4398, allocations: 4.062 kB / 477.5 MB, free: 4.371 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.4399, allocations: 56.45 kB / 477.6 MB, free: 4.316 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.4403, allocations: 17.58 kB / 477.6 MB, free: 4.297 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.4416, allocations: 0.7355 MB / 478.3 MB, free: 3.523 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.442, allocations: 0.7753 MB / 479.1 MB, free: 2.723 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.446e-05/0.4421, allocations: 25.84 kB / 479.1 MB, free: 2.695 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.4422, allocations: 83.41 kB / 479.2 MB, free: 2.613 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4423, allocations: 3.938 kB / 479.2 MB, free: 2.609 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02028/0.4625, allocations: 3.404 MB / 482.6 MB, free: 15.23 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002406/0.4629, allocations: 150.6 kB / 482.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.697/2.16, allocations: 3.938 kB / 482.8 MB, free: 15.02 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat