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.001202/0.001203, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.001353/0.001352, allocations: 181.4 kB / 17.21 MB, free: 6.336 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.504/1.504, allocations: 223.2 MB / 241.2 MB, free: 5.414 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002854/0.0002854, allocations: 8.031 kB / 300.9 MB, free: 5.961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1245, allocations: 50.43 MB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003414/0.128, allocations: 2.44 MB / 353.8 MB, free: 9.113 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.1294, allocations: 0.6313 MB / 354.4 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001925/0.1296, allocations: 4 kB / 354.4 MB, free: 8.473 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002072/0.1298, allocations: 47.61 kB / 354.5 MB, free: 8.426 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001901/0.13, allocations: 79.31 kB / 354.5 MB, free: 8.348 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000305/0.1303, allocations: 67.94 kB / 354.6 MB, free: 8.281 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004779/0.1308, allocations: 350.4 kB / 354.9 MB, free: 7.938 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002855/0.1311, allocations: 111.9 kB / 355.1 MB, free: 7.816 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002445/0.1313, allocations: 111.6 kB / 355.2 MB, free: 7.707 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001992/0.1315, allocations: 127.4 kB / 355.3 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.323e-05/0.1316, allocations: 16 kB / 355.3 MB, free: 7.566 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.324e-05/0.1316, allocations: 16 kB / 355.3 MB, free: 7.551 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.869e-05/0.1317, allocations: 67.75 kB / 355.4 MB, free: 7.484 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.1318, allocations: 77.58 kB / 355.5 MB, free: 7.402 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003253/0.1322, allocations: 267.2 kB / 355.7 MB, free: 7.141 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1322, allocations: 0 / 355.7 MB, free: 7.141 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1322, allocations: 0 / 355.7 MB, free: 7.141 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.1322, allocations: 4 kB / 355.7 MB, free: 7.137 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.001011/0.1332, allocations: 0.5691 MB / 356.3 MB, free: 6.516 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/0.1333, allocations: 12.03 kB / 356.3 MB, free: 6.504 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.564e-05/0.1334, allocations: 66.53 kB / 356.4 MB, free: 6.43 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.461e-05/0.1335, allocations: 39.58 kB / 356.4 MB, free: 6.391 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003503/0.1338, allocations: 258.4 kB / 356.7 MB, free: 6.098 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.1339, allocations: 20.66 kB / 356.7 MB, free: 6.078 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.607e-05/0.1339, allocations: 36 kB / 356.7 MB, free: 6.043 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005591/0.1345, allocations: 274.1 kB / 357 MB, free: 5.773 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.1345, allocations: 4 kB / 357 MB, free: 5.77 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.848e-05/0.1345, allocations: 8 kB / 357 MB, free: 5.762 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.1346, allocations: 11.95 kB / 357 MB, free: 5.75 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004968/0.1351, allocations: 210.5 kB / 357.2 MB, free: 5.543 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001511/0.1366, allocations: 0.9947 MB / 358.2 MB, free: 4.477 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00031/0.1369, allocations: 166.6 kB / 358.4 MB, free: 4.305 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001842/0.1371, allocations: 80.81 kB / 358.5 MB, free: 4.223 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.1371, allocations: 4 kB / 358.5 MB, free: 4.219 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.1372, allocations: 38.56 kB / 358.5 MB, free: 4.172 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.402e-06/0.1372, allocations: 0 / 358.5 MB, free: 4.172 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006164/0.1378, allocations: 236 kB / 358.7 MB, free: 3.938 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.692e-05/0.1379, allocations: 51.41 kB / 358.8 MB, free: 3.875 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002426/0.1381, allocations: 207 kB / 359 MB, free: 3.664 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.1382, allocations: 33.64 kB / 359 MB, free: 3.625 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/0.1384, allocations: 192 kB / 359.2 MB, free: 3.434 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.394e-05/0.1384, allocations: 67 kB / 359.3 MB, free: 3.367 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.68e-05/0.1385, allocations: 8 kB / 359.3 MB, free: 3.359 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002211/0.1387, allocations: 334.8 kB / 359.6 MB, free: 3.023 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.1389, allocations: 67.97 kB / 359.7 MB, free: 2.957 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002446/0.1391, allocations: 118 kB / 359.8 MB, free: 2.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002045/0.1393, allocations: 83.91 kB / 359.9 MB, free: 2.738 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.1393, allocations: 0 / 359.9 MB, free: 2.738 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005087/0.1399, allocations: 245.2 kB / 360.1 MB, free: 2.492 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/0.1399, allocations: 8 kB / 360.1 MB, free: 2.484 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.1399, allocations: 3.984 kB / 360.1 MB, free: 2.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.1399, allocations: 4 kB / 360.1 MB, free: 2.477 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002869/0.1402, allocations: 60.03 kB / 360.2 MB, free: 2.418 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.1403, allocations: 8 kB / 360.2 MB, free: 2.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001537/0.1404, allocations: 31.73 kB / 360.2 MB, free: 2.379 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.1404, allocations: 8 kB / 360.2 MB, free: 2.371 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.0001956/0.1407, allocations: 145.7 kB / 360.4 MB, free: 2.219 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.489e-05/0.1407, allocations: 15.81 kB / 360.4 MB, free: 2.203 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004935/0.1412, allocations: 213.6 kB / 360.6 MB, free: 1.992 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.1412, allocations: 0 / 360.6 MB, free: 1.992 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.1412, allocations: 0 / 360.6 MB, free: 1.992 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.1412, allocations: 4 kB / 360.6 MB, free: 1.988 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004354/0.1417, allocations: 317.4 kB / 360.9 MB, free: 1.629 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1417, allocations: 0 / 360.9 MB, free: 1.629 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002606/0.142, allocations: 59.91 kB / 361 MB, free: 1.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.142, allocations: 0 / 361 MB, free: 1.57 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.142, allocations: 11.94 kB / 361 MB, free: 1.559 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.142, allocations: 4 kB / 361 MB, free: 1.555 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.142, allocations: 0 / 361 MB, free: 1.555 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006135/0.1426, allocations: 359.1 kB / 361.3 MB, free: 1.188 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.721e-05/0.1427, allocations: 104.8 kB / 361.4 MB, free: 1.066 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.265e-05/0.1428, allocations: 4.047 kB / 361.4 MB, free: 1.062 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.1429, allocations: 27.97 kB / 361.5 MB, free: 1.035 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.342e-05/0.143, allocations: 11.98 kB / 361.5 MB, free: 1.023 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.143, allocations: 4 kB / 361.5 MB, free: 1.02 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001361/0.1432, allocations: 144.6 kB / 361.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1432, allocations: 4 kB / 361.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003387/0.1435, allocations: 75.69 kB / 361.7 MB, free: 0.8008 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.001012/0.1445, allocations: 0.8981 MB / 362.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004131/0.145, allocations: 176.2 kB / 362.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.145, allocations: 0 / 362.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001631/0.1451, allocations: 84.14 kB / 362.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004181/0.1456, allocations: 27.95 kB / 362.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002654/0.1482, allocations: 1.838 MB / 364.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003859/0.1486, allocations: 0.7715 MB / 365.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.578e-05/0.1487, allocations: 17.95 kB / 365.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.1489, allocations: 91.41 kB / 365.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1489, allocations: 0 / 365.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01626/0.1651, allocations: 4.043 MB / 369.6 MB, free: 8.895 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.1654, allocations: 195.2 kB / 369.8 MB, free: 8.652 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.954/2.119, allocations: 0 / 369.8 MB, free: 8.652 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