Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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: translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001652/0.001652, allocations: 190.9 kB / 16.13 MB, free: 6.66 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.876/1.876, allocations: 205.1 MB / 222 MB, free: 4.746 MB / 174.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.002413/0.002413, allocations: 47.94 kB / 278 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4266/0.429, allocations: 46.63 MB / 324.7 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.01073/0.4398, allocations: 5.343 MB / 330 MB, free: 13.65 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006632/0.4466, allocations: 1.46 MB / 331.5 MB, free: 12.45 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002265/0.4489, allocations: 25.22 kB / 331.5 MB, free: 12.44 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001099/0.4502, allocations: 157.4 kB / 331.7 MB, free: 12.3 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002297/0.4525, allocations: 162.8 kB / 331.8 MB, free: 12.16 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001879/0.4544, allocations: 342.3 kB / 332.1 MB, free: 11.89 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003035/0.4575, allocations: 1.064 MB / 333.2 MB, free: 11.26 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001081/0.4586, allocations: 421.1 kB / 333.6 MB, free: 11 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001104/0.4597, allocations: 375.6 kB / 334 MB, free: 10.77 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006426/0.4604, allocations: 423 kB / 334.4 MB, free: 10.39 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001223/0.4605, allocations: 56 kB / 334.5 MB, free: 10.33 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00028/0.4608, allocations: 68 kB / 334.5 MB, free: 10.27 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002172/0.461, allocations: 179.2 kB / 334.7 MB, free: 10.09 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006334/0.4617, allocations: 488.9 kB / 335.2 MB, free: 9.609 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001512/0.4632, allocations: 1.025 MB / 336.2 MB, free: 8.582 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.211e-05/0.4632, allocations: 3.938 kB / 336.2 MB, free: 8.578 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4632, allocations: 0 / 336.2 MB, free: 8.578 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.509e-05/0.4632, allocations: 0 / 336.2 MB, free: 8.578 MB / 270.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.002884/0.4661, allocations: 1.313 MB / 337.5 MB, free: 7.211 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.203e-05/0.4662, allocations: 8.031 kB / 337.5 MB, free: 7.203 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002428/0.4665, allocations: 134.4 kB / 337.7 MB, free: 7.07 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.4677, allocations: 0.6107 MB / 338.3 MB, free: 6.414 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.844e-05/0.4678, allocations: 77.94 kB / 338.3 MB, free: 6.34 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001537/0.4679, allocations: 100 kB / 338.4 MB, free: 6.242 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/0.4699, allocations: 1.028 MB / 339.5 MB, free: 5.09 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.644e-05/0.47, allocations: 7.938 kB / 339.5 MB, free: 5.082 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.703e-05/0.4701, allocations: 44 kB / 339.5 MB, free: 5.039 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.709e-05/0.4701, allocations: 28 kB / 339.5 MB, free: 5.012 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.4714, allocations: 0.5578 MB / 340.1 MB, free: 4.453 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006442/0.4778, allocations: 5.516 MB / 345.6 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006761/0.4785, allocations: 236.9 kB / 345.9 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000348/0.4789, allocations: 161.6 kB / 346 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002771/0.4792, allocations: 89.11 kB / 346.1 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/0.4792, allocations: 38.56 kB / 346.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 3.426e-06/0.4792, allocations: 0 / 346.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.004568/0.4838, allocations: 1.7 MB / 347.8 MB, free: 12.28 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.4839, allocations: 93.03 kB / 347.9 MB, free: 12.17 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009583/0.4849, allocations: 0.6373 MB / 348.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.485, allocations: 29.7 kB / 348.6 MB, free: 11.49 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005299/0.4855, allocations: 0.5948 MB / 349.2 MB, free: 10.88 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.4856, allocations: 153.9 kB / 349.3 MB, free: 10.73 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002418/0.4859, allocations: 134.5 kB / 349.5 MB, free: 10.59 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001958/0.4861, allocations: 382.8 kB / 349.8 MB, free: 10.21 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003383/0.4864, allocations: 157.9 kB / 350 MB, free: 10.06 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006297/0.4871, allocations: 497.1 kB / 350.5 MB, free: 9.406 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.4882, allocations: 0.7027 MB / 351.2 MB, free: 8.543 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.4882, allocations: 4 kB / 351.2 MB, free: 8.539 MB / 286.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001329/0.4895, allocations: 0.7079 MB / 351.9 MB, free: 7.824 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/0.4896, allocations: 12.06 kB / 351.9 MB, free: 7.812 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.475e-05/0.4896, allocations: 15.94 kB / 351.9 MB, free: 7.797 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.022e-05/0.4896, allocations: 16 kB / 351.9 MB, free: 7.781 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006905/0.4903, allocations: 191.7 kB / 352.1 MB, free: 7.594 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.228e-05/0.4904, allocations: 27.86 kB / 352.2 MB, free: 7.566 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003912/0.4908, allocations: 39.98 kB / 352.2 MB, free: 7.527 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.432e-05/0.4909, allocations: 40 kB / 352.2 MB, free: 7.488 MB / 286.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004497/0.4913, allocations: 233.5 kB / 352.5 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.4915, allocations: 75.06 kB / 352.5 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.4916, allocations: 74.53 kB / 352.6 MB, free: 7.098 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.4916, allocations: 4 kB / 352.6 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.4916, allocations: 3.938 kB / 352.6 MB, free: 7.09 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.4916, allocations: 4 kB / 352.6 MB, free: 7.086 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/0.4937, allocations: 1.317 MB / 353.9 MB, free: 5.695 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.4938, allocations: 0 / 353.9 MB, free: 5.695 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004725/0.4942, allocations: 107.8 kB / 354 MB, free: 5.59 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.4943, allocations: 4 kB / 354 MB, free: 5.586 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.669e-05/0.4943, allocations: 8 kB / 354 MB, free: 5.578 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.237e-06/0.4943, allocations: 11.92 kB / 354.1 MB, free: 5.566 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.4943, allocations: 4.156 kB / 354.1 MB, free: 5.562 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.4954, allocations: 0.6971 MB / 354.8 MB, free: 4.836 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.4955, allocations: 136.2 kB / 354.9 MB, free: 4.684 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.441e-05/0.4956, allocations: 19.97 kB / 354.9 MB, free: 4.664 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002926/0.4959, allocations: 23.92 kB / 354.9 MB, free: 4.641 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.722e-05/0.496, allocations: 31.97 kB / 355 MB, free: 4.609 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.483e-05/0.496, allocations: 15.98 kB / 355 MB, free: 4.594 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004647/0.4965, allocations: 419 kB / 355.4 MB, free: 4.188 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4965, allocations: 0 / 355.4 MB, free: 4.188 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006384/0.4971, allocations: 139.9 kB / 355.5 MB, free: 4.051 MB / 286.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001602/0.4973, allocations: 119.1 kB / 355.6 MB, free: 3.922 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000769/0.498, allocations: 440.6 kB / 356.1 MB, free: 3.496 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.4981, allocations: 4 kB / 356.1 MB, free: 3.492 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000275/0.4983, allocations: 151.7 kB / 356.2 MB, free: 3.344 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000565/0.4989, allocations: 79.23 kB / 356.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00319/0.5021, allocations: 2.105 MB / 358.4 MB, free: 1.117 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006015/0.5027, allocations: 1 MB / 359.4 MB, free: 92 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003111/0.5031, allocations: 94.06 kB / 359.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.5032, allocations: 67.41 kB / 359.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.5032, allocations: 4 kB / 359.6 MB, free: 15.92 MB / 302.1 MB Notification: Performance of Templates: time 0.01216/0.5154, allocations: 4.659 MB / 364.2 MB, free: 11.27 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1)