Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.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: translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009675/0.0009674, allocations: 97.52 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001387/0.001387, allocations: 201.3 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.547/1.547, allocations: 227.7 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000274/0.000274, allocations: 8 kB / 307.7 MB, free: 0.7891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1351, allocations: 51.52 MB / 359.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003649/0.1388, allocations: 2.574 MB / 361.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.1403, allocations: 0.6934 MB / 362.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.1404, allocations: 7.938 kB / 362.5 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001851/0.1406, allocations: 51.67 kB / 362.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001583/0.1408, allocations: 67.39 kB / 362.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002581/0.1411, allocations: 87.86 kB / 362.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003438/0.1414, allocations: 354.4 kB / 363.1 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002791/0.1417, allocations: 132.9 kB / 363.2 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002421/0.142, allocations: 119.5 kB / 363.3 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.1421, allocations: 139.3 kB / 363.5 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.697e-05/0.1422, allocations: 16 kB / 363.5 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.126e-05/0.1422, allocations: 16 kB / 363.5 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.779e-05/0.1423, allocations: 55.77 kB / 363.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001473/0.1425, allocations: 176.9 kB / 363.7 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003106/0.1428, allocations: 354.7 kB / 364.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.1428, allocations: 0 / 364.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.1428, allocations: 0 / 364.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1428, allocations: 0 / 364.1 MB, free: 8.43 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009115/0.1437, allocations: 0.5732 MB / 364.6 MB, free: 7.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.1438, allocations: 8.031 kB / 364.7 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.275e-05/0.1439, allocations: 40.56 kB / 364.7 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003334/0.1442, allocations: 259.7 kB / 364.9 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/0.1442, allocations: 21.03 kB / 365 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.285e-05/0.1443, allocations: 36.38 kB / 365 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006631/0.145, allocations: 282.4 kB / 365.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.145, allocations: 0 / 365.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.661e-05/0.1451, allocations: 12 kB / 365.3 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.1451, allocations: 8 kB / 365.3 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000474/0.1456, allocations: 222.5 kB / 365.5 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.147, allocations: 0.9908 MB / 366.5 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003288/0.1474, allocations: 170.5 kB / 366.7 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001887/0.1476, allocations: 88.81 kB / 366.8 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.1476, allocations: 0 / 366.8 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.1477, allocations: 34.56 kB / 366.8 MB, free: 5.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.292e-06/0.1477, allocations: 0 / 366.8 MB, free: 5.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006077/0.1483, allocations: 233.6 kB / 367 MB, free: 5.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.1483, allocations: 51.41 kB / 367.1 MB, free: 5.223 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002197/0.1486, allocations: 210.8 kB / 367.3 MB, free: 5.008 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.1486, allocations: 25.7 kB / 367.3 MB, free: 4.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.1487, allocations: 196 kB / 367.5 MB, free: 4.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.008e-05/0.1488, allocations: 71.03 kB / 367.6 MB, free: 4.711 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.796e-05/0.1488, allocations: 17.72 kB / 367.6 MB, free: 4.688 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.149, allocations: 334.8 kB / 367.9 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.1492, allocations: 67.97 kB / 368 MB, free: 4.285 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.1494, allocations: 122 kB / 368.1 MB, free: 4.145 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000374/0.1498, allocations: 197.8 kB / 368.3 MB, free: 3.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1498, allocations: 0 / 368.3 MB, free: 3.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004676/0.1503, allocations: 261 kB / 368.5 MB, free: 3.668 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.1503, allocations: 8.125 kB / 368.6 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.1503, allocations: 4 kB / 368.6 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.1503, allocations: 4 kB / 368.6 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002704/0.1506, allocations: 59.91 kB / 368.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.1506, allocations: 7.938 kB / 368.6 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001461/0.1508, allocations: 31.77 kB / 368.7 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.1508, allocations: 4 kB / 368.7 MB, free: 3.551 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.0001573/0.151, allocations: 145.8 kB / 368.8 MB, free: 3.398 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.918e-05/0.151, allocations: 23.72 kB / 368.8 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004687/0.1515, allocations: 202.5 kB / 369 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1515, allocations: 0 / 369 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.1515, allocations: 4 kB / 369 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.1515, allocations: 0 / 369 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004134/0.152, allocations: 333.2 kB / 369.4 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.152, allocations: 0 / 369.4 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002749/0.1522, allocations: 51.91 kB / 369.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1523, allocations: 4 kB / 369.4 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.1523, allocations: 4 kB / 369.4 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.1523, allocations: 0 / 369.4 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1523, allocations: 0 / 369.4 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006117/0.1529, allocations: 368.1 kB / 369.8 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.238e-05/0.153, allocations: 100.9 kB / 369.9 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.321e-05/0.153, allocations: 4.125 kB / 369.9 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.1532, allocations: 23.98 kB / 369.9 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.822e-05/0.1533, allocations: 7.984 kB / 369.9 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.1533, allocations: 8 kB / 369.9 MB, free: 2.199 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001395/0.1534, allocations: 152.6 kB / 370.1 MB, free: 2.051 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1534, allocations: 3.938 kB / 370.1 MB, free: 2.047 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003342/0.1538, allocations: 83.69 kB / 370.1 MB, free: 1.965 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (19): * Single equations (assignments): 19 * 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.0001597/0.1539, allocations: 99.25 kB / 370.2 MB, free: 1.859 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004187/0.1544, allocations: 164 kB / 370.4 MB, free: 1.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1544, allocations: 4 kB / 370.4 MB, free: 1.695 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.1546, allocations: 82.47 kB / 370.5 MB, free: 1.617 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003797/0.1549, allocations: 38.33 kB / 370.5 MB, free: 1.582 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001523/0.1565, allocations: 1.065 MB / 371.6 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2232/0.3797, allocations: 0.7607 MB / 372.4 MB, free: 18.58 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001578/0.3799, allocations: 20.19 kB / 372.4 MB, free: 18.58 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.54e-05/0.38, allocations: 19.02 kB / 372.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.38, allocations: 4.891 kB / 372.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of Templates: time 0.00581/0.3858, allocations: 1.833 MB / 374.2 MB, free: 18.53 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches