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.001188/0.001188, allocations: 94.88 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001319, allocations: 203.8 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.542/1.542, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003516/0.0003518, allocations: 8 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1431, allocations: 51.5 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005042/0.1483, allocations: 4.441 MB / 362.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003267/0.1516, allocations: 1.47 MB / 364.1 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007874/0.1524, allocations: 19.88 kB / 364.1 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002858/0.1527, allocations: 107 kB / 364.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007727/0.1535, allocations: 231.2 kB / 364.5 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008687/0.1543, allocations: 299.6 kB / 364.8 MB, free: 7.203 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001171/0.1555, allocations: 0.7571 MB / 365.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005461/0.1561, allocations: 354.2 kB / 365.9 MB, free: 6.082 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005699/0.1567, allocations: 318.5 kB / 366.2 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004123/0.1571, allocations: 353.9 kB / 366.5 MB, free: 5.422 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.001e-05/0.1572, allocations: 43.94 kB / 366.6 MB, free: 5.379 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001802/0.1574, allocations: 51.98 kB / 366.6 MB, free: 5.328 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001473/0.1575, allocations: 159.2 kB / 366.8 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001894/0.1577, allocations: 197.1 kB / 367 MB, free: 4.973 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008161/0.1585, allocations: 0.7754 MB / 367.7 MB, free: 4.195 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.1585, allocations: 0 / 367.7 MB, free: 4.195 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1586, allocations: 4 kB / 367.7 MB, free: 4.191 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.661e-05/0.1586, allocations: 0 / 367.7 MB, free: 4.191 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.001858/0.1604, allocations: 1.13 MB / 368.9 MB, free: 3.012 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.925e-05/0.1605, allocations: 12.03 kB / 368.9 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001691/0.1607, allocations: 152.2 kB / 369 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003726/0.1611, allocations: 150.4 kB / 369.2 MB, free: 2.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008902/0.162, allocations: 0.5801 MB / 369.8 MB, free: 2.074 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.655e-05/0.1621, allocations: 78 kB / 369.8 MB, free: 1.996 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.1622, allocations: 103.9 kB / 369.9 MB, free: 1.895 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001558/0.1637, allocations: 1.023 MB / 371 MB, free: 0.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.194e-05/0.1638, allocations: 7.938 kB / 371 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.259e-05/0.1639, allocations: 44 kB / 371 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/0.1639, allocations: 24 kB / 371 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/0.165, allocations: 0.5578 MB / 371.6 MB, free: 124 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.25/0.415, allocations: 5.519 MB / 377.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.4162, allocations: 241.4 kB / 377.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002386/0.4164, allocations: 87.67 kB / 377.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.769e-05/0.4165, allocations: 39.69 kB / 377.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 4.128e-06/0.4165, allocations: 0 / 377.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.004949/0.4215, allocations: 1.726 MB / 379.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/0.4215, allocations: 85.23 kB / 379.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009115/0.4224, allocations: 0.6322 MB / 379.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.562e-05/0.4225, allocations: 32.42 kB / 379.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000377/0.4229, allocations: 0.5949 MB / 380.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.423, allocations: 145.1 kB / 380.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.272e-05/0.423, allocations: 13.84 kB / 380.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.4232, allocations: 385.7 kB / 381.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003209/0.4235, allocations: 161.4 kB / 381.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004915/0.424, allocations: 499.6 kB / 381.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003998/0.4244, allocations: 233.1 kB / 381.9 MB, free: 11.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/0.4244, allocations: 4.094 kB / 381.9 MB, free: 11.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001467/0.4259, allocations: 0.7215 MB / 382.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.142e-05/0.4259, allocations: 10.72 kB / 382.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.591e-05/0.426, allocations: 13.14 kB / 382.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.761e-05/0.426, allocations: 16.91 kB / 382.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006864/0.4267, allocations: 196.1 kB / 382.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.711e-05/0.4268, allocations: 22.64 kB / 382.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004184/0.4272, allocations: 42.22 kB / 383 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.469e-05/0.4272, allocations: 35.52 kB / 383 MB, free: 11.46 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 (94): * Single equations (assignments): 94 * 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.0003451/0.4276, allocations: 234.4 kB / 383.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.4277, allocations: 74.91 kB / 383.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.4278, allocations: 73.31 kB / 383.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.4278, allocations: 4.375 kB / 383.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.4279, allocations: 5.125 kB / 383.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.4279, allocations: 2.109 kB / 383.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002261/0.4301, allocations: 1.306 MB / 384.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.4302, allocations: 0 / 384.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004606/0.4306, allocations: 101.1 kB / 384.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.121e-05/0.4306, allocations: 5.703 kB / 384.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.4307, allocations: 12.41 kB / 384.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.4307, allocations: 7.094 kB / 384.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.4307, allocations: 2.906 kB / 384.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.4317, allocations: 0.7085 MB / 385.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001518/0.4319, allocations: 139.9 kB / 385.7 MB, free: 9.879 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.562e-05/0.432, allocations: 12.2 kB / 385.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002893/0.4323, allocations: 24.73 kB / 385.7 MB, free: 9.867 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.683e-05/0.4323, allocations: 26.16 kB / 385.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.427e-05/0.4324, allocations: 9.938 kB / 385.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000594/0.433, allocations: 417.3 kB / 386.1 MB, free: 9.684 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.433, allocations: 5.25 kB / 386.1 MB, free: 9.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00103/0.434, allocations: 137.1 kB / 386.3 MB, free: 9.664 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (38): * Single equations (assignments): 38 * 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.001512/0.4355, allocations: 1.412 MB / 387.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001196/0.4368, allocations: 446.5 kB / 388.1 MB, free: 8.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4368, allocations: 1.156 kB / 388.1 MB, free: 8.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003255/0.4371, allocations: 154.9 kB / 388.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.4376, allocations: 71.8 kB / 388.3 MB, free: 8.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.4488, allocations: 12.43 MB / 400.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008275/0.4497, allocations: 1.028 MB / 401.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004338/0.4501, allocations: 87.84 kB / 401.9 MB, free: 12.91 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004992/0.4506, allocations: 389.6 kB / 402.3 MB, free: 12.61 MB / 318.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4506, allocations: 0 / 402.3 MB, free: 12.61 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0325/0.4831, allocations: 11.37 MB / 413.6 MB, free: 5.527 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001849/0.4834, allocations: 182.8 kB / 413.8 MB, free: 5.289 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.133/2.616, allocations: 0 / 413.8 MB, free: 5.289 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