Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.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.ParallelResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008486/0.0008485, allocations: 100.4 kB / 17.01 MB, free: 6.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009501/0.0009501, allocations: 194.7 kB / 17.91 MB, free: 5.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.554/1.554, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002938/0.0002939, allocations: 8 kB / 306.8 MB, free: 1.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1367, allocations: 51.49 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.002994/0.1398, allocations: 2.463 MB / 360.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.1409, allocations: 0.6781 MB / 361.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.141, allocations: 4 kB / 361.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.1412, allocations: 47.62 kB / 361.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.1413, allocations: 71.38 kB / 361.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002318/0.1416, allocations: 63.94 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003332/0.1419, allocations: 354.9 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002516/0.1422, allocations: 128.7 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000218/0.1424, allocations: 119.5 kB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.1426, allocations: 127.4 kB / 362.3 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.31e-05/0.1426, allocations: 16 kB / 362.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.971e-05/0.1427, allocations: 16 kB / 362.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.865e-05/0.1427, allocations: 51.77 kB / 362.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.505e-05/0.1428, allocations: 93.52 kB / 362.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002667/0.1431, allocations: 283.4 kB / 362.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1431, allocations: 0 / 362.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1431, allocations: 0 / 362.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.1431, allocations: 0 / 362.8 MB, free: 9.457 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.0008349/0.1439, allocations: 0.573 MB / 363.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.144, allocations: 8.031 kB / 363.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.751e-05/0.1441, allocations: 70.53 kB / 363.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.702e-05/0.1442, allocations: 31.62 kB / 363.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003252/0.1445, allocations: 266.4 kB / 363.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.1445, allocations: 20.66 kB / 363.8 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.757e-05/0.1446, allocations: 35.95 kB / 363.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005458/0.1451, allocations: 290 kB / 364.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.1452, allocations: 0 / 364.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/0.1452, allocations: 8 kB / 364.1 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.1452, allocations: 8 kB / 364.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004639/0.1457, allocations: 226.5 kB / 364.3 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001507/0.1472, allocations: 1.03 MB / 365.3 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003088/0.1475, allocations: 165.3 kB / 365.5 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.1478, allocations: 137.1 kB / 365.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.1478, allocations: 3.953 kB / 365.6 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.1479, allocations: 38.56 kB / 365.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.283e-06/0.1479, allocations: 3.938 kB / 365.7 MB, free: 6.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005505/0.1484, allocations: 233.3 kB / 365.9 MB, free: 6.137 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.1485, allocations: 59.41 kB / 366 MB, free: 6.066 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002079/0.1487, allocations: 215.1 kB / 366.2 MB, free: 5.848 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.656e-05/0.1487, allocations: 29.7 kB / 366.2 MB, free: 5.812 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.1489, allocations: 191.9 kB / 366.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.952e-05/0.1489, allocations: 74.92 kB / 366.5 MB, free: 5.547 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.124e-05/0.149, allocations: 4 kB / 366.5 MB, free: 5.543 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1491, allocations: 330.8 kB / 366.8 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000169/0.1493, allocations: 76.52 kB / 366.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.1495, allocations: 143.4 kB / 367 MB, free: 4.965 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.1497, allocations: 91.91 kB / 367.1 MB, free: 4.875 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1497, allocations: 4 kB / 367.1 MB, free: 4.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004633/0.1502, allocations: 277.1 kB / 367.4 MB, free: 4.594 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.1502, allocations: 12.25 kB / 367.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.1502, allocations: 4 kB / 367.4 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.1502, allocations: 4 kB / 367.4 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002866/0.1505, allocations: 75.83 kB / 367.5 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.1505, allocations: 7.938 kB / 367.5 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001557/0.1507, allocations: 35.67 kB / 367.5 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.1507, allocations: 12 kB / 367.5 MB, free: 4.445 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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.000141/0.1509, allocations: 154.8 kB / 367.7 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.703e-05/0.1509, allocations: 23.67 kB / 367.7 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004587/0.1514, allocations: 208.9 kB / 367.9 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.1514, allocations: 4 kB / 367.9 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1514, allocations: 8 kB / 367.9 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.1514, allocations: 0 / 367.9 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008191/0.1523, allocations: 0.6191 MB / 368.5 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.1523, allocations: 4 kB / 368.5 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002877/0.1526, allocations: 59.92 kB / 368.6 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.1526, allocations: 4 kB / 368.6 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.1526, allocations: 0 / 368.6 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.1526, allocations: 4 kB / 368.6 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.1526, allocations: 3.938 kB / 368.6 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005696/0.1532, allocations: 389.3 kB / 369 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.692e-05/0.1533, allocations: 96.83 kB / 369.1 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.1533, allocations: 8.062 kB / 369.1 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.1535, allocations: 19.98 kB / 369.1 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.975e-05/0.1536, allocations: 15.97 kB / 369.1 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.1536, allocations: 8 kB / 369.1 MB, free: 2.727 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001345/0.1537, allocations: 156.6 kB / 369.3 MB, free: 2.574 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1537, allocations: 4 kB / 369.3 MB, free: 2.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003293/0.1541, allocations: 79.69 kB / 369.4 MB, free: 2.492 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.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 (21): * Single equations (assignments): 21 * 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.0009342/0.155, allocations: 0.9285 MB / 370.3 MB, free: 1.535 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003995/0.1554, allocations: 179.8 kB / 370.5 MB, free: 1.359 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1554, allocations: 4 kB / 370.5 MB, free: 1.355 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.1556, allocations: 80.53 kB / 370.6 MB, free: 1.277 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003819/0.156, allocations: 43.2 kB / 370.6 MB, free: 1.238 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2127/0.3687, allocations: 1.881 MB / 372.5 MB, free: 19.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.3691, allocations: 0.7662 MB / 373.2 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001602/0.3692, allocations: 28.45 kB / 373.3 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000146/0.3694, allocations: 90.61 kB / 373.4 MB, free: 18.42 MB / 302.1 MB Notification: Performance of SimCode: time 1.643e-06/0.3694, allocations: 0 / 373.4 MB, free: 18.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01709/0.3865, allocations: 4.161 MB / 377.5 MB, free: 18.21 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001427/0.3867, allocations: 195 kB / 377.7 MB, free: 17.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.94/2.327, allocations: 7.875 kB / 377.7 MB, free: 17.96 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat does not exist to compare? outputFormat=mat