Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.ResonanceCircuits,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008654/0.0008658, allocations: 97.42 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008915/0.0008918, allocations: 193.9 kB / 17.9 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.576/1.576, allocations: 227.3 MB / 246 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002702/0.0002704, allocations: 4 kB / 306.8 MB, free: 1.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1368, allocations: 51.5 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005278/0.1421, allocations: 4.628 MB / 362.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003691/0.1459, allocations: 1.427 MB / 364.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007149/0.1466, allocations: 23.88 kB / 364.4 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004581/0.1471, allocations: 158.6 kB / 364.5 MB, free: 7.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006324/0.1477, allocations: 150.7 kB / 364.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009494/0.1487, allocations: 295.6 kB / 365 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001117/0.1498, allocations: 1.001 MB / 366 MB, free: 6.305 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006004/0.1504, allocations: 346.2 kB / 366.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005554/0.151, allocations: 322.5 kB / 366.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004448/0.1514, allocations: 357.9 kB / 367 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.821e-05/0.1515, allocations: 40 kB / 367 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002263/0.1518, allocations: 52 kB / 367.1 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.1519, allocations: 159.2 kB / 367.2 MB, free: 5.035 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001878/0.1521, allocations: 197.1 kB / 367.4 MB, free: 4.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008571/0.153, allocations: 0.7754 MB / 368.2 MB, free: 4.059 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.058e-05/0.153, allocations: 4 kB / 368.2 MB, free: 4.055 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.153, allocations: 4 kB / 368.2 MB, free: 4.051 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.153, allocations: 0 / 368.2 MB, free: 4.051 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001816/0.1549, allocations: 1.122 MB / 369.3 MB, free: 2.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.61e-05/0.1549, allocations: 8.031 kB / 369.3 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001876/0.1551, allocations: 156.2 kB / 369.5 MB, free: 2.711 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003889/0.1555, allocations: 154.4 kB / 369.6 MB, free: 2.559 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009354/0.1565, allocations: 0.5801 MB / 370.2 MB, free: 1.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.282e-05/0.1566, allocations: 81.94 kB / 370.3 MB, free: 1.855 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.1567, allocations: 103.9 kB / 370.4 MB, free: 1.754 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001717/0.1584, allocations: 1.034 MB / 371.4 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.115e-05/0.1585, allocations: 7.938 kB / 371.4 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.803e-05/0.1586, allocations: 44 kB / 371.5 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.098e-05/0.1586, allocations: 31.98 kB / 371.5 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2764/0.435, allocations: 0.5488 MB / 372.1 MB, free: 19.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005527/0.4406, allocations: 5.519 MB / 377.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006519/0.4413, allocations: 234.9 kB / 377.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003642/0.4416, allocations: 165.8 kB / 378 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001673/0.4418, allocations: 90.55 kB / 378.1 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.4418, allocations: 39.05 kB / 378.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 3.176e-06/0.4419, allocations: 1.094 kB / 378.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004113/0.446, allocations: 1.773 MB / 379.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.446, allocations: 81.23 kB / 379.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007975/0.4468, allocations: 0.6382 MB / 380.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.4469, allocations: 31.88 kB / 380.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003741/0.4473, allocations: 0.5968 MB / 381.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.4474, allocations: 146.1 kB / 381.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.499e-05/0.4474, allocations: 16.25 kB / 381.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.4476, allocations: 387.5 kB / 381.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003244/0.4479, allocations: 159.7 kB / 381.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004939/0.4484, allocations: 0.4971 MB / 382.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004111/0.4488, allocations: 228.7 kB / 382.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.4488, allocations: 4.625 kB / 382.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001273/0.4501, allocations: 0.7237 MB / 383.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.502e-05/0.4502, allocations: 11.39 kB / 383.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.231e-05/0.4502, allocations: 13.47 kB / 383.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.939e-05/0.4502, allocations: 17.22 kB / 383.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006706/0.4509, allocations: 208.2 kB / 383.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.367e-05/0.4509, allocations: 23.66 kB / 383.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003693/0.4513, allocations: 37.2 kB / 383.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.928e-05/0.4514, allocations: 39.81 kB / 383.7 MB, free: 11.57 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * 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.0003241/0.4517, allocations: 231 kB / 383.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001799/0.4519, allocations: 78.81 kB / 384 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000186/0.4521, allocations: 77.73 kB / 384.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.4521, allocations: 4.281 kB / 384.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/0.4521, allocations: 2.781 kB / 384.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.4522, allocations: 2.109 kB / 384.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002506/0.4547, allocations: 1.363 MB / 385.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.4547, allocations: 5.031 kB / 385.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004949/0.4552, allocations: 113.5 kB / 385.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.455e-06/0.4552, allocations: 4 kB / 385.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/0.4553, allocations: 10.02 kB / 385.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.371e-06/0.4553, allocations: 3.359 kB / 385.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.4553, allocations: 2.312 kB / 385.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.4564, allocations: 0.7278 MB / 386.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/0.4566, allocations: 141.6 kB / 386.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.281e-05/0.4566, allocations: 9.906 kB / 386.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000284/0.4569, allocations: 29.77 kB / 386.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.84e-05/0.457, allocations: 22.62 kB / 386.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.139e-05/0.4571, allocations: 19.09 kB / 386.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006205/0.4577, allocations: 421.7 kB / 386.9 MB, free: 9.727 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4577, allocations: 1.062 kB / 386.9 MB, free: 9.727 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008753/0.4586, allocations: 136.9 kB / 387.1 MB, free: 9.711 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * 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.001341/0.4599, allocations: 1.265 MB / 388.3 MB, free: 8.738 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.4611, allocations: 444.8 kB / 388.8 MB, free: 8.605 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.738e-06/0.4611, allocations: 4 kB / 388.8 MB, free: 8.602 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000366/0.4615, allocations: 170 kB / 388.9 MB, free: 8.551 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000637/0.4621, allocations: 73.56 kB / 389 MB, free: 8.508 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008569/0.4707, allocations: 4.669 MB / 393.7 MB, free: 5.621 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008595/0.4716, allocations: 1.006 MB / 394.7 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004055/0.472, allocations: 92.17 kB / 394.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004427/0.4725, allocations: 390.3 kB / 395.2 MB, free: 4.586 MB / 302.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4725, allocations: 0 / 395.2 MB, free: 4.586 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04532/0.5178, allocations: 11.45 MB / 406.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002859/0.5182, allocations: 193.8 kB / 406.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.235/2.753, allocations: 3.938 kB / 406.8 MB, free: 12.68 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat does not exist to compare? outputFormat=mat