Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009836/0.0009841, allocations: 97.44 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 202.1 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.52/1.52, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002679/0.0002683, allocations: 8 kB / 306.7 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1315, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004102/0.1357, allocations: 2.346 MB / 360.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002163/0.1379, allocations: 0.6899 MB / 361.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002193/0.1382, allocations: 11.94 kB / 361.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.58e-05/0.1383, allocations: 39.69 kB / 361.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002909/0.1386, allocations: 103.7 kB / 361.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000273/0.1388, allocations: 67.92 kB / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003524/0.1392, allocations: 251.4 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002708/0.1395, allocations: 119.8 kB / 361.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002542/0.1398, allocations: 123.5 kB / 361.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.1399, allocations: 131.4 kB / 362.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.437e-05/0.14, allocations: 16 kB / 362.1 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.287e-05/0.14, allocations: 19.94 kB / 362.1 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.151e-05/0.1401, allocations: 51.83 kB / 362.2 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.17e-05/0.1402, allocations: 81.52 kB / 362.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002669/0.1405, allocations: 275.4 kB / 362.5 MB, free: 9.438 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1405, allocations: 0 / 362.5 MB, free: 9.438 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1405, allocations: 0 / 362.5 MB, free: 9.438 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.1405, allocations: 0 / 362.5 MB, free: 9.438 MB / 302.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.0009026/0.1414, allocations: 0.5613 MB / 363.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.1415, allocations: 12.02 kB / 363.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.728e-05/0.1415, allocations: 70.55 kB / 363.1 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.991e-05/0.1416, allocations: 35.61 kB / 363.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/0.142, allocations: 262.4 kB / 363.4 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.142, allocations: 24.66 kB / 363.5 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.621e-05/0.1421, allocations: 35.95 kB / 363.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005334/0.1426, allocations: 274 kB / 363.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.1426, allocations: 0 / 363.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.046e-05/0.1427, allocations: 12 kB / 363.8 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.1427, allocations: 12 kB / 363.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004453/0.1431, allocations: 210.5 kB / 364 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.1447, allocations: 0.9831 MB / 365 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003199/0.145, allocations: 162.5 kB / 365.1 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.145, allocations: 8 kB / 365.1 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.1451, allocations: 34.64 kB / 365.2 MB, free: 6.566 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.1451, allocations: 0 / 365.2 MB, free: 6.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005875/0.1457, allocations: 239.8 kB / 365.4 MB, free: 6.328 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.1458, allocations: 51.41 kB / 365.5 MB, free: 6.266 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.146, allocations: 210.8 kB / 365.7 MB, free: 6.051 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.146, allocations: 29.7 kB / 365.7 MB, free: 6.016 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.1461, allocations: 195.9 kB / 365.9 MB, free: 5.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.816e-05/0.1462, allocations: 63.11 kB / 365.9 MB, free: 5.758 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.013e-05/0.1462, allocations: 4 kB / 365.9 MB, free: 5.754 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1464, allocations: 334.8 kB / 366.3 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.1465, allocations: 67.95 kB / 366.3 MB, free: 5.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.1467, allocations: 118 kB / 366.5 MB, free: 5.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001757/0.1469, allocations: 75.98 kB / 366.5 MB, free: 5.141 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1469, allocations: 0 / 366.5 MB, free: 5.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00044/0.1473, allocations: 265.1 kB / 366.8 MB, free: 4.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.1474, allocations: 4 kB / 366.8 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.1474, allocations: 4 kB / 366.8 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.1474, allocations: 7.891 kB / 366.8 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002749/0.1477, allocations: 72.03 kB / 366.9 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.1477, allocations: 4 kB / 366.9 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/0.1479, allocations: 27.77 kB / 366.9 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/0.1479, allocations: 8 kB / 366.9 MB, free: 4.75 MB / 302.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.0001246/0.148, allocations: 141.7 kB / 367.1 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.449e-05/0.1481, allocations: 23.72 kB / 367.1 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004057/0.1485, allocations: 199.4 kB / 367.3 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1485, allocations: 4 kB / 367.3 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1485, allocations: 0 / 367.3 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1485, allocations: 3.984 kB / 367.3 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003295/0.1489, allocations: 313.4 kB / 367.6 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1489, allocations: 4 kB / 367.6 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/0.1491, allocations: 59.91 kB / 367.6 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1491, allocations: 0 / 367.6 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.1492, allocations: 8 kB / 367.7 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.341e-06/0.1492, allocations: 3.984 kB / 367.7 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1492, allocations: 0 / 367.7 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005695/0.1498, allocations: 370.7 kB / 368 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.365e-05/0.1498, allocations: 96.83 kB / 368.1 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.21e-05/0.1499, allocations: 4.062 kB / 368.1 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001674/0.15, allocations: 23.98 kB / 368.1 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.853e-05/0.1501, allocations: 11.98 kB / 368.2 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.1501, allocations: 7.984 kB / 368.2 MB, free: 3.406 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000117/0.1502, allocations: 148.6 kB / 368.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1502, allocations: 0 / 368.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000324/0.1506, allocations: 75.69 kB / 368.4 MB, free: 3.188 MB / 302.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.0007984/0.1514, allocations: 0.8956 MB / 369.3 MB, free: 2.266 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003563/0.1517, allocations: 167.9 kB / 369.4 MB, free: 2.102 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.1518, allocations: 0 / 369.4 MB, free: 2.102 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001613/0.1519, allocations: 90.14 kB / 369.5 MB, free: 2.016 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.1522, allocations: 31.88 kB / 369.6 MB, free: 1.984 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1893/0.3415, allocations: 2.723 MB / 372.3 MB, free: 18.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004134/0.342, allocations: 0.7725 MB / 373.1 MB, free: 18.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001524/0.3422, allocations: 25.73 kB / 373.1 MB, free: 18.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001573/0.3423, allocations: 92.91 kB / 373.2 MB, free: 18.02 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3423, allocations: 0 / 373.2 MB, free: 18.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0196/0.3619, allocations: 4.022 MB / 377.2 MB, free: 17.83 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/0.3622, allocations: 190.5 kB / 377.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.979/2.341, allocations: 0 / 377.4 MB, free: 17.59 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat