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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 92.8 kB / 16.3 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 183.8 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.627/1.627, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003533, allocations: 6.859 kB / 300.8 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1308, allocations: 50.43 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003525/0.1344, allocations: 2.335 MB / 353.6 MB, free: 9.305 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001433/0.1359, allocations: 0.6549 MB / 354.2 MB, free: 8.645 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001895/0.1361, allocations: 8 kB / 354.2 MB, free: 8.637 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.669e-05/0.1362, allocations: 39.62 kB / 354.3 MB, free: 8.598 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002405/0.1365, allocations: 103.7 kB / 354.4 MB, free: 8.496 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002694/0.1367, allocations: 71.86 kB / 354.4 MB, free: 8.426 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003606/0.1371, allocations: 247.5 kB / 354.7 MB, free: 8.184 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/0.1374, allocations: 115.9 kB / 354.8 MB, free: 8.059 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002501/0.1376, allocations: 115.6 kB / 354.9 MB, free: 7.945 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.1378, allocations: 131.4 kB / 355 MB, free: 7.816 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.022e-05/0.1379, allocations: 16 kB / 355 MB, free: 7.801 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.558e-05/0.1379, allocations: 16 kB / 355.1 MB, free: 7.785 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.541e-05/0.138, allocations: 51.77 kB / 355.1 MB, free: 7.734 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.825e-05/0.1381, allocations: 85.52 kB / 355.2 MB, free: 7.645 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003132/0.1385, allocations: 267.2 kB / 355.5 MB, free: 7.383 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1385, allocations: 0 / 355.5 MB, free: 7.383 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.1385, allocations: 4 kB / 355.5 MB, free: 7.379 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.1385, allocations: 0 / 355.5 MB, free: 7.379 MB / 286.1 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.001221/0.1397, allocations: 0.5691 MB / 356 MB, free: 6.758 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.632e-05/0.1398, allocations: 12.03 kB / 356 MB, free: 6.746 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001208/0.1399, allocations: 74.47 kB / 356.1 MB, free: 6.664 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.345e-05/0.14, allocations: 39.58 kB / 356.2 MB, free: 6.625 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004251/0.1405, allocations: 250.5 kB / 356.4 MB, free: 6.34 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.426e-05/0.1405, allocations: 20.66 kB / 356.4 MB, free: 6.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.911e-05/0.1406, allocations: 32 kB / 356.5 MB, free: 6.289 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005827/0.1412, allocations: 274.1 kB / 356.7 MB, free: 6.02 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.1412, allocations: 0 / 356.7 MB, free: 6.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.1412, allocations: 20 kB / 356.7 MB, free: 6 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.1413, allocations: 11.95 kB / 356.8 MB, free: 5.988 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004775/0.1417, allocations: 210.5 kB / 357 MB, free: 5.781 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.1434, allocations: 0.9908 MB / 357.9 MB, free: 4.719 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003405/0.1438, allocations: 162.6 kB / 358.1 MB, free: 4.551 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.1438, allocations: 8 kB / 358.1 MB, free: 4.543 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.828e-05/0.1439, allocations: 34.56 kB / 358.1 MB, free: 4.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.643e-06/0.1439, allocations: 0 / 358.1 MB, free: 4.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005886/0.1445, allocations: 231.7 kB / 358.4 MB, free: 4.27 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.1445, allocations: 55.41 kB / 358.4 MB, free: 4.203 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/0.1448, allocations: 206.9 kB / 358.6 MB, free: 3.992 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.765e-05/0.1448, allocations: 33.7 kB / 358.7 MB, free: 3.953 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.1449, allocations: 192 kB / 358.9 MB, free: 3.762 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.572e-05/0.145, allocations: 67 kB / 358.9 MB, free: 3.695 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.959e-06/0.145, allocations: 4 kB / 358.9 MB, free: 3.691 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.1452, allocations: 334.8 kB / 359.2 MB, free: 3.355 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.1454, allocations: 71.95 kB / 359.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.1456, allocations: 114 kB / 359.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001936/0.1458, allocations: 83.86 kB / 359.5 MB, free: 3.07 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1458, allocations: 0 / 359.5 MB, free: 3.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004752/0.1463, allocations: 245.2 kB / 359.7 MB, free: 2.824 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.1463, allocations: 8 kB / 359.8 MB, free: 2.816 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.1463, allocations: 0 / 359.8 MB, free: 2.816 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.1463, allocations: 4 kB / 359.8 MB, free: 2.812 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002894/0.1466, allocations: 72.03 kB / 359.8 MB, free: 2.742 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.1467, allocations: 3.984 kB / 359.8 MB, free: 2.738 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.1468, allocations: 27.75 kB / 359.9 MB, free: 2.711 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.1468, allocations: 8 kB / 359.9 MB, free: 2.703 MB / 286.1 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 () * Number of clocked 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.0001539/0.147, allocations: 141.7 kB / 360 MB, free: 2.555 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.422e-05/0.147, allocations: 23.8 kB / 360 MB, free: 2.531 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000461/0.1475, allocations: 210.1 kB / 360.2 MB, free: 2.324 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1475, allocations: 0 / 360.2 MB, free: 2.324 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1475, allocations: 0 / 360.2 MB, free: 2.324 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.1475, allocations: 7.984 kB / 360.2 MB, free: 2.316 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003784/0.1479, allocations: 317.4 kB / 360.6 MB, free: 1.957 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1479, allocations: 0 / 360.6 MB, free: 1.957 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002739/0.1482, allocations: 63.95 kB / 360.6 MB, free: 1.895 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.1482, allocations: 0 / 360.6 MB, free: 1.895 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.1483, allocations: 7.938 kB / 360.6 MB, free: 1.887 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.1483, allocations: 4 kB / 360.6 MB, free: 1.883 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1483, allocations: 0 / 360.6 MB, free: 1.883 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006069/0.1489, allocations: 355.1 kB / 361 MB, free: 1.52 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.736e-05/0.149, allocations: 104.8 kB / 361.1 MB, free: 1.398 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.237e-05/0.149, allocations: 4 kB / 361.1 MB, free: 1.395 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.1492, allocations: 23.98 kB / 361.1 MB, free: 1.371 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.171e-05/0.1493, allocations: 11.97 kB / 361.1 MB, free: 1.359 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.1493, allocations: 8 kB / 361.1 MB, free: 1.352 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001446/0.1494, allocations: 148.6 kB / 361.3 MB, free: 1.207 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1494, allocations: 0 / 361.3 MB, free: 1.207 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003366/0.1498, allocations: 75.69 kB / 361.3 MB, free: 1.133 MB / 286.1 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 () * Number of clocked 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.001004/0.1508, allocations: 0.901 MB / 362.2 MB, free: 208 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004174/0.1512, allocations: 180.2 kB / 362.4 MB, free: 28 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1512, allocations: 0 / 362.4 MB, free: 28 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001817/0.1514, allocations: 80.16 kB / 362.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.1517, allocations: 32.09 kB / 362.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.1549, allocations: 2.721 MB / 365.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004149/0.1554, allocations: 0.7715 MB / 366 MB, free: 12.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001051/0.1555, allocations: 25.92 kB / 366 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.1556, allocations: 95.41 kB / 366.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1556, allocations: 0 / 366.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01777/0.1734, allocations: 4.026 MB / 370.2 MB, free: 8.328 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000296/0.1738, allocations: 184.8 kB / 370.3 MB, free: 8.086 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.858/2.032, allocations: 0 / 370.3 MB, free: 8.086 MB / 302.1 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