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: translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_3.2.3_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.001216/0.001216, allocations: 105.5 kB / 18.35 MB, free: 4.762 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.001258/0.001258, allocations: 192 kB / 19.29 MB, free: 3.832 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.51/1.51, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001205/0.001206, allocations: 55.92 kB / 282.1 MB, free: 2.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1137, allocations: 46.63 MB / 328.7 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006451/0.1202, allocations: 5.343 MB / 334.1 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00332/0.1236, allocations: 1.474 MB / 335.5 MB, free: 12.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006433/0.1243, allocations: 27.88 kB / 335.6 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005533/0.1249, allocations: 221.8 kB / 335.8 MB, free: 12.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006517/0.1256, allocations: 194 kB / 336 MB, free: 12.49 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008937/0.1265, allocations: 391.4 kB / 336.4 MB, free: 12.11 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001189/0.1277, allocations: 1.123 MB / 337.5 MB, free: 10.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006575/0.1283, allocations: 484.2 kB / 338 MB, free: 10.49 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004934/0.1288, allocations: 406.2 kB / 338.4 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004623/0.1293, allocations: 433.6 kB / 338.8 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001071/0.1294, allocations: 84 kB / 338.9 MB, free: 9.582 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001778/0.1296, allocations: 91.98 kB / 338.9 MB, free: 9.492 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001641/0.1298, allocations: 211.1 kB / 339.2 MB, free: 9.285 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004621/0.1303, allocations: 0.501 MB / 339.7 MB, free: 8.781 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001101/0.1314, allocations: 1.144 MB / 340.8 MB, free: 7.633 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.1314, allocations: 0 / 340.8 MB, free: 7.633 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1314, allocations: 3.938 kB / 340.8 MB, free: 7.629 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.809e-05/0.1314, allocations: 0 / 340.8 MB, free: 7.629 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.001802/0.1332, allocations: 1.305 MB / 342.1 MB, free: 6.27 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.1333, allocations: 15.89 kB / 342.1 MB, free: 6.254 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001828/0.1335, allocations: 126.5 kB / 342.2 MB, free: 6.129 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001167/0.1346, allocations: 0.6536 MB / 342.9 MB, free: 5.434 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.863e-05/0.1347, allocations: 77.94 kB / 343 MB, free: 5.359 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.1349, allocations: 96 kB / 343.1 MB, free: 5.266 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.1365, allocations: 1.031 MB / 344.1 MB, free: 4.109 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.214e-05/0.1365, allocations: 7.938 kB / 344.1 MB, free: 4.102 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.679e-05/0.1366, allocations: 44 kB / 344.2 MB, free: 4.059 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.987e-05/0.1366, allocations: 24 kB / 344.2 MB, free: 4.035 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.1377, allocations: 0.5539 MB / 344.7 MB, free: 3.477 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005442/0.1432, allocations: 5.489 MB / 350.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005535/0.1438, allocations: 233 kB / 350.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002926/0.1441, allocations: 165.6 kB / 350.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001509/0.1442, allocations: 89.08 kB / 350.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.1443, allocations: 42.48 kB / 350.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.904e-06/0.1443, allocations: 3.938 kB / 350.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003954/0.1482, allocations: 1.71 MB / 352.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/0.1483, allocations: 85.05 kB / 352.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007578/0.1491, allocations: 0.6294 MB / 353.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.246e-05/0.1492, allocations: 33.7 kB / 353.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004309/0.1496, allocations: 0.6026 MB / 353.8 MB, free: 9.918 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.1497, allocations: 145.9 kB / 353.9 MB, free: 9.773 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/0.1499, allocations: 138.5 kB / 354.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1501, allocations: 386.7 kB / 354.5 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000284/0.1503, allocations: 153.9 kB / 354.6 MB, free: 9.098 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005472/0.1509, allocations: 0.4893 MB / 355.1 MB, free: 8.445 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008799/0.1518, allocations: 0.6953 MB / 355.8 MB, free: 7.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.1518, allocations: 4 kB / 355.8 MB, free: 7.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001279/0.1531, allocations: 0.7113 MB / 356.5 MB, free: 6.867 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.1531, allocations: 15.94 kB / 356.5 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/0.1532, allocations: 12 kB / 356.5 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.039e-05/0.1532, allocations: 16 kB / 356.5 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006262/0.1538, allocations: 196.2 kB / 356.7 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.059e-05/0.1539, allocations: 31.86 kB / 356.8 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004033/0.1543, allocations: 35.98 kB / 356.8 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.037e-05/0.1543, allocations: 36 kB / 356.8 MB, free: 6.531 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003646/0.1547, allocations: 229.5 kB / 357.1 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.1548, allocations: 71.06 kB / 357.1 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000129/0.155, allocations: 78.53 kB / 357.2 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.155, allocations: 4 kB / 357.2 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-05/0.155, allocations: 3.938 kB / 357.2 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.155, allocations: 7.984 kB / 357.2 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002332/0.1574, allocations: 1.309 MB / 358.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1574, allocations: 0 / 358.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006239/0.158, allocations: 99.88 kB / 358.6 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.366e-05/0.1581, allocations: 4 kB / 358.6 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.939e-05/0.1581, allocations: 15.92 kB / 358.7 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-05/0.1581, allocations: 7.938 kB / 358.7 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/0.1581, allocations: 8.156 kB / 358.7 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.1593, allocations: 0.7045 MB / 359.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001671/0.1595, allocations: 144.1 kB / 359.5 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.231e-05/0.1596, allocations: 11.94 kB / 359.5 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002915/0.1599, allocations: 23.98 kB / 359.5 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.761e-05/0.16, allocations: 35.89 kB / 359.6 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.16, allocations: 12 kB / 359.6 MB, free: 3.633 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005333/0.1605, allocations: 419 kB / 360 MB, free: 3.227 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1605, allocations: 0 / 360 MB, free: 3.227 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007768/0.1613, allocations: 140 kB / 360.1 MB, free: 3.09 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 (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.0003006/0.1616, allocations: 111.2 kB / 360.2 MB, free: 2.969 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009071/0.1625, allocations: 442.2 kB / 360.7 MB, free: 2.539 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.1626, allocations: 0 / 360.7 MB, free: 2.539 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003389/0.1629, allocations: 155.9 kB / 360.8 MB, free: 2.387 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006234/0.1635, allocations: 74.42 kB / 360.9 MB, free: 2.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003111/0.1667, allocations: 1.651 MB / 362.6 MB, free: 0.625 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007372/0.1674, allocations: 1.012 MB / 363.6 MB, free: 15.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002836/0.1677, allocations: 90.02 kB / 363.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/0.1679, allocations: 63.42 kB / 363.7 MB, free: 15.43 MB / 318.1 MB Notification: Performance of SimCode: time 1.533e-06/0.1679, allocations: 0 / 363.7 MB, free: 15.43 MB / 318.1 MB Notification: Performance of Templates: time 0.01145/0.1793, allocations: 4.921 MB / 368.6 MB, free: 10.51 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches