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.0009652/0.0009652, allocations: 100.7 kB / 16.94 MB, free: 5.719 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.0009794/0.0009795, allocations: 185.8 kB / 17.83 MB, free: 5.34 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.489/1.489, allocations: 205.4 MB / 224 MB, free: 13.01 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.0004834/0.0004836, allocations: 12 kB / 280.8 MB, free: 3.602 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1183, allocations: 47.57 MB / 328.4 MB, free: 3.961 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.004754/0.1231, allocations: 4.398 MB / 332.8 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002242/0.1253, allocations: 1.459 MB / 334.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000333/0.1257, allocations: 23.88 kB / 334.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.1259, allocations: 107 kB / 334.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000539/0.1264, allocations: 235.2 kB / 334.6 MB, free: 13.71 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005922/0.127, allocations: 299.5 kB / 334.9 MB, free: 13.42 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008777/0.1279, allocations: 0.7533 MB / 335.7 MB, free: 12.67 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005121/0.1284, allocations: 342.2 kB / 336 MB, free: 12.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003429/0.1288, allocations: 318.5 kB / 336.3 MB, free: 12.01 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003584/0.1291, allocations: 353.9 kB / 336.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.574e-05/0.1292, allocations: 43.94 kB / 336.7 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.1294, allocations: 51.98 kB / 336.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.1295, allocations: 147.3 kB / 336.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.1297, allocations: 205.1 kB / 337.1 MB, free: 11.21 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000691/0.1304, allocations: 0.7715 MB / 337.9 MB, free: 10.44 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1304, allocations: 7.938 kB / 337.9 MB, free: 10.43 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1304, allocations: 0 / 337.9 MB, free: 10.43 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.1304, allocations: 0 / 337.9 MB, free: 10.43 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.001598/0.132, allocations: 1.13 MB / 339 MB, free: 9.254 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.1321, allocations: 12.03 kB / 339 MB, free: 9.242 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001721/0.1322, allocations: 148.2 kB / 339.2 MB, free: 9.09 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.1324, allocations: 126.4 kB / 339.3 MB, free: 8.965 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008417/0.1332, allocations: 0.5801 MB / 339.9 MB, free: 8.34 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.142e-05/0.1333, allocations: 77.95 kB / 340 MB, free: 8.262 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.1334, allocations: 99.98 kB / 340 MB, free: 8.164 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.135, allocations: 1.015 MB / 341.1 MB, free: 7.027 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.28e-05/0.135, allocations: 19.83 kB / 341.1 MB, free: 7.008 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.115e-05/0.1351, allocations: 47.98 kB / 341.1 MB, free: 6.961 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.31e-05/0.1352, allocations: 24 kB / 341.2 MB, free: 6.938 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.1362, allocations: 0.5539 MB / 341.7 MB, free: 6.387 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004966/0.1412, allocations: 5.536 MB / 347.2 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005369/0.1418, allocations: 229 kB / 347.5 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001899/0.142, allocations: 97.05 kB / 347.6 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.142, allocations: 34.56 kB / 347.6 MB, free: 168 kB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 1.684e-06/0.142, allocations: 7.938 kB / 347.6 MB, free: 160 kB / 286.1 MB Notification: Performance of matching and sorting (n=38): time 0.003716/0.1457, allocations: 1.718 MB / 349.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.1458, allocations: 93.05 kB / 349.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006636/0.1465, allocations: 0.6255 MB / 350 MB, free: 13.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.1465, allocations: 33.7 kB / 350.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003889/0.1469, allocations: 0.5948 MB / 350.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.728e-05/0.147, allocations: 145.9 kB / 350.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.261e-05/0.147, allocations: 16 kB / 350.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.1472, allocations: 390.7 kB / 351.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003037/0.1475, allocations: 157.9 kB / 351.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005158/0.1481, allocations: 497.1 kB / 351.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003882/0.1485, allocations: 238.6 kB / 352.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.1485, allocations: 0 / 352.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001079/0.1496, allocations: 0.7152 MB / 352.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.1496, allocations: 8 kB / 352.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.1496, allocations: 15.98 kB / 352.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.992e-05/0.1496, allocations: 16 kB / 352.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006265/0.1503, allocations: 200 kB / 353 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.418e-05/0.1503, allocations: 27.92 kB / 353.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003414/0.1507, allocations: 39.98 kB / 353.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.5e-05/0.1507, allocations: 36 kB / 353.1 MB, free: 10.3 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.0002834/0.151, allocations: 233.4 kB / 353.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.1511, allocations: 71.06 kB / 353.4 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001071/0.1512, allocations: 74.53 kB / 353.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.1513, allocations: 8 kB / 353.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/0.1513, allocations: 4 kB / 353.5 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1513, allocations: 0 / 353.5 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001947/0.1532, allocations: 1.298 MB / 354.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.1532, allocations: 4 kB / 354.8 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004615/0.1537, allocations: 107.8 kB / 354.9 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.1537, allocations: 4 kB / 354.9 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/0.1538, allocations: 12 kB / 354.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.1538, allocations: 4.031 kB / 354.9 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1538, allocations: 0 / 354.9 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009875/0.1548, allocations: 0.7158 MB / 355.7 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.1549, allocations: 144.2 kB / 355.8 MB, free: 7.504 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.91e-05/0.155, allocations: 12 kB / 355.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002879/0.1553, allocations: 23.98 kB / 355.8 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.427e-05/0.1553, allocations: 23.97 kB / 355.9 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.1554, allocations: 11.94 kB / 355.9 MB, free: 7.434 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004425/0.1558, allocations: 423 kB / 356.3 MB, free: 7.027 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1558, allocations: 0 / 356.3 MB, free: 7.027 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006082/0.1564, allocations: 136 kB / 356.4 MB, free: 6.895 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.001331/0.1578, allocations: 1.402 MB / 357.8 MB, free: 5.449 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007612/0.1585, allocations: 442.5 kB / 358.2 MB, free: 5.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.1586, allocations: 0 / 358.2 MB, free: 5.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002664/0.1588, allocations: 156.1 kB / 358.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003549/0.1592, allocations: 71.25 kB / 358.5 MB, free: 4.797 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009793/0.169, allocations: 12.43 MB / 370.9 MB, free: 8.023 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006317/0.1697, allocations: 1.027 MB / 371.9 MB, free: 6.969 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000317/0.17, allocations: 90.02 kB / 372 MB, free: 6.879 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004274/0.1704, allocations: 391.2 kB / 372.4 MB, free: 6.496 MB / 318.1 MB Notification: Performance of SimCode: time 1.192e-06/0.1704, allocations: 0 / 372.4 MB, free: 6.496 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1856/0.3561, allocations: 11.37 MB / 383.8 MB, free: 51.3 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001343/0.3563, allocations: 184.3 kB / 383.9 MB, free: 51.07 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.019/2.375, allocations: 1.25 kB / 383.9 MB, free: 51.07 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