Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",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.001051/0.001051, allocations: 98.58 kB / 16.95 MB, free: 6.453 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.001244/0.001244, allocations: 183.7 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.871/1.871, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004814/0.0004815, allocations: 12 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1225, allocations: 47.57 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005537/0.1281, allocations: 4.584 MB / 333 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003022/0.1311, allocations: 1.423 MB / 334.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008108/0.132, allocations: 23.88 kB / 334.5 MB, free: 13.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004749/0.1325, allocations: 154.6 kB / 334.6 MB, free: 13.78 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005527/0.133, allocations: 154.6 kB / 334.8 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007736/0.1338, allocations: 291.7 kB / 335.1 MB, free: 13.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001104/0.1349, allocations: 0.9973 MB / 336.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005017/0.1354, allocations: 346.2 kB / 336.4 MB, free: 11.99 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003516/0.1358, allocations: 310.5 kB / 336.7 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003386/0.1361, allocations: 357.9 kB / 337.1 MB, free: 11.33 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.27e-05/0.1362, allocations: 40 kB / 337.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001436/0.1364, allocations: 52 kB / 337.1 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.1365, allocations: 159.2 kB / 337.3 MB, free: 11.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001535/0.1367, allocations: 193.1 kB / 337.5 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009243/0.1376, allocations: 0.7832 MB / 338.3 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1376, allocations: 0 / 338.3 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1376, allocations: 0 / 338.3 MB, free: 10.11 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.151e-05/0.1376, allocations: 4 kB / 338.3 MB, free: 10.1 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001613/0.1393, allocations: 1.13 MB / 339.4 MB, free: 8.922 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.1393, allocations: 8.031 kB / 339.4 MB, free: 8.914 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001712/0.1395, allocations: 152.2 kB / 339.6 MB, free: 8.758 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.1397, allocations: 126.4 kB / 339.7 MB, free: 8.633 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008245/0.1405, allocations: 0.5918 MB / 340.3 MB, free: 7.996 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.168e-05/0.1406, allocations: 73.95 kB / 340.3 MB, free: 7.922 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.1407, allocations: 100 kB / 340.4 MB, free: 7.824 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.1424, allocations: 1.023 MB / 341.5 MB, free: 6.68 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.187e-05/0.1425, allocations: 11.84 kB / 341.5 MB, free: 6.668 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.889e-05/0.1425, allocations: 44 kB / 341.5 MB, free: 6.625 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-05/0.1426, allocations: 28 kB / 341.6 MB, free: 6.598 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.1437, allocations: 0.5539 MB / 342.1 MB, free: 6.047 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004773/0.1485, allocations: 5.528 MB / 347.6 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005508/0.1491, allocations: 249 kB / 347.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002948/0.1494, allocations: 157.5 kB / 348 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001861/0.1496, allocations: 93.09 kB / 348.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.1496, allocations: 38.56 kB / 348.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.064e-06/0.1496, allocations: 0 / 348.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003842/0.1535, allocations: 1.757 MB / 349.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.052e-05/0.1535, allocations: 89.06 kB / 350 MB, free: 13.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007206/0.1543, allocations: 0.6294 MB / 350.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.735e-05/0.1543, allocations: 29.7 kB / 350.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004285/0.1548, allocations: 0.6026 MB / 351.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.1549, allocations: 150 kB / 351.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.558e-05/0.1549, allocations: 16 kB / 351.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002076/0.1551, allocations: 382.8 kB / 351.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002985/0.1554, allocations: 157.9 kB / 352 MB, free: 11.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005277/0.156, allocations: 0.4971 MB / 352.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003787/0.1564, allocations: 238.9 kB / 352.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.1564, allocations: 4 kB / 352.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001081/0.1575, allocations: 0.7195 MB / 353.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.1575, allocations: 12 kB / 353.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.662e-05/0.1575, allocations: 12 kB / 353.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.049e-05/0.1576, allocations: 20.03 kB / 353.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006361/0.1582, allocations: 203.6 kB / 353.6 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.273e-05/0.1582, allocations: 19.94 kB / 353.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003279/0.1586, allocations: 39.94 kB / 353.7 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.669e-05/0.1586, allocations: 44 kB / 353.8 MB, free: 9.723 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.0003291/0.159, allocations: 225.5 kB / 354 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.1591, allocations: 79.05 kB / 354 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001292/0.1592, allocations: 74.55 kB / 354.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.1592, allocations: 4 kB / 354.1 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.1593, allocations: 0 / 354.1 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.1593, allocations: 7.984 kB / 354.1 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002196/0.1615, allocations: 1.345 MB / 355.5 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.1615, allocations: 11.98 kB / 355.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004882/0.162, allocations: 107.8 kB / 355.6 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.211e-05/0.162, allocations: 16.08 kB / 355.6 MB, free: 7.777 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.117e-05/0.1621, allocations: 12 kB / 355.6 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.1621, allocations: 4 kB / 355.6 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.1621, allocations: 4 kB / 355.6 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.1631, allocations: 0.7319 MB / 356.4 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.1632, allocations: 140.2 kB / 356.5 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.685e-05/0.1633, allocations: 8 kB / 356.5 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002703/0.1636, allocations: 31.98 kB / 356.5 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.704e-05/0.1637, allocations: 27.95 kB / 356.6 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-05/0.1637, allocations: 15.95 kB / 356.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005097/0.1642, allocations: 423 kB / 357 MB, free: 6.348 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1642, allocations: 0 / 357 MB, free: 6.348 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006969/0.1649, allocations: 136 kB / 357.1 MB, free: 6.215 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.001446/0.1664, allocations: 1.273 MB / 358.4 MB, free: 4.895 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008763/0.1673, allocations: 442.8 kB / 358.8 MB, free: 4.465 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/0.1673, allocations: 448 / 358.8 MB, free: 4.465 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002789/0.1676, allocations: 163.7 kB / 359 MB, free: 4.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005485/0.1681, allocations: 75.3 kB / 359.1 MB, free: 4.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006778/0.1749, allocations: 4.67 MB / 363.7 MB, free: 15.29 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006128/0.1756, allocations: 1.004 MB / 364.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002985/0.1759, allocations: 98 kB / 364.8 MB, free: 14.15 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004463/0.1763, allocations: 391.3 kB / 365.2 MB, free: 13.77 MB / 318.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1763, allocations: 0 / 365.2 MB, free: 13.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02503/0.2014, allocations: 11.45 MB / 376.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/0.2016, allocations: 192.4 kB / 376.9 MB, free: 2.07 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.404/2.605, allocations: 3.938 kB / 376.9 MB, free: 2.066 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat does not exist to compare? outputFormat=mat