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.001103/0.001103, allocations: 98.41 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001374/0.001374, allocations: 203.5 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002475/0.0002476, allocations: 8 kB / 306.6 MB, free: 1.406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.113, allocations: 51.5 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003496/0.1166, allocations: 2.342 MB / 360.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001776/0.1184, allocations: 0.6937 MB / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003326/0.1187, allocations: 11.94 kB / 361.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001297/0.1189, allocations: 31.75 kB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003826/0.1193, allocations: 111.6 kB / 361.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003616/0.1197, allocations: 63.94 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005428/0.1202, allocations: 255.4 kB / 361.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002885/0.1205, allocations: 115.9 kB / 361.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004147/0.1209, allocations: 119.5 kB / 361.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000285/0.1212, allocations: 131.5 kB / 361.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.609e-05/0.1213, allocations: 16 kB / 362 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.733e-05/0.1214, allocations: 16 kB / 362 MB, free: 10 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.623e-05/0.1214, allocations: 59.77 kB / 362 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.152e-05/0.1215, allocations: 81.52 kB / 362.1 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003168/0.1218, allocations: 279.4 kB / 362.4 MB, free: 9.582 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1219, allocations: 0 / 362.4 MB, free: 9.582 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.1219, allocations: 0 / 362.4 MB, free: 9.582 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.622e-05/0.1219, allocations: 0 / 362.4 MB, free: 9.582 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.001113/0.123, allocations: 0.5613 MB / 362.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.239e-05/0.1231, allocations: 8.031 kB / 362.9 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.1232, allocations: 31.62 kB / 363 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000466/0.1237, allocations: 266.5 kB / 363.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.139e-05/0.1238, allocations: 20.66 kB / 363.3 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.411e-05/0.1239, allocations: 32 kB / 363.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006387/0.1245, allocations: 278 kB / 363.6 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.1245, allocations: 4 kB / 363.6 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.118e-05/0.1246, allocations: 8 kB / 363.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.1246, allocations: 8 kB / 363.6 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005176/0.1251, allocations: 214.5 kB / 363.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.1272, allocations: 0.9908 MB / 364.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003989/0.1276, allocations: 162.7 kB / 364.9 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.98e-05/0.1277, allocations: 0 / 364.9 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.669e-05/0.1277, allocations: 38.55 kB / 365 MB, free: 6.793 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 3.707e-06/0.1277, allocations: 3.938 kB / 365 MB, free: 6.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007396/0.1285, allocations: 237.4 kB / 365.2 MB, free: 6.551 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.1286, allocations: 51.41 kB / 365.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002356/0.1288, allocations: 210.8 kB / 365.5 MB, free: 6.273 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.1288, allocations: 33.64 kB / 365.5 MB, free: 6.234 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.129, allocations: 188.1 kB / 365.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.783e-05/0.1291, allocations: 71 kB / 365.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.314e-05/0.1291, allocations: 8 kB / 365.8 MB, free: 5.969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1292, allocations: 330.8 kB / 366.1 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001594/0.1294, allocations: 59.97 kB / 366.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.1296, allocations: 125.9 kB / 366.3 MB, free: 5.434 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002019/0.1298, allocations: 79.98 kB / 366.3 MB, free: 5.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.1298, allocations: 0 / 366.3 MB, free: 5.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004333/0.1303, allocations: 253.4 kB / 366.6 MB, free: 5.102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.1303, allocations: 4 kB / 366.6 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1303, allocations: 4 kB / 366.6 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.1303, allocations: 4 kB / 366.6 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002802/0.1306, allocations: 67.86 kB / 366.7 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.1306, allocations: 4 kB / 366.7 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.1308, allocations: 35.67 kB / 366.7 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.571e-05/0.1308, allocations: 7.938 kB / 366.7 MB, free: 4.977 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001328/0.1309, allocations: 140.3 kB / 366.9 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.273e-05/0.131, allocations: 19.81 kB / 366.9 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004637/0.1315, allocations: 203.3 kB / 367.1 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1315, allocations: 11.94 kB / 367.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1315, allocations: 0 / 367.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1315, allocations: 0 / 367.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003801/0.1319, allocations: 321.4 kB / 367.4 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1319, allocations: 0 / 367.4 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002726/0.1322, allocations: 55.91 kB / 367.5 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.1322, allocations: 4 kB / 367.5 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.1322, allocations: 0 / 367.5 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1322, allocations: 0 / 367.5 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.1322, allocations: 7.984 kB / 367.5 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005946/0.1328, allocations: 374.8 kB / 367.8 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.922e-05/0.1329, allocations: 92.83 kB / 367.9 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.754e-05/0.133, allocations: 4.062 kB / 367.9 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/0.1331, allocations: 19.98 kB / 367.9 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.309e-05/0.1332, allocations: 11.98 kB / 368 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.1332, allocations: 4 kB / 368 MB, free: 3.637 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001444/0.1334, allocations: 152.6 kB / 368.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1334, allocations: 4 kB / 368.1 MB, free: 3.484 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003791/0.1337, allocations: 75.69 kB / 368.2 MB, free: 3.41 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 (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.000226/0.134, allocations: 103.2 kB / 368.3 MB, free: 3.301 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004534/0.1344, allocations: 176 kB / 368.5 MB, free: 3.129 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.1345, allocations: 0 / 368.5 MB, free: 3.129 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001808/0.1346, allocations: 83.83 kB / 368.5 MB, free: 3.047 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000377/0.135, allocations: 23.95 kB / 368.6 MB, free: 3.023 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/0.1365, allocations: 1.038 MB / 369.6 MB, free: 1.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.1369, allocations: 0.7715 MB / 370.4 MB, free: 1.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.283e-05/0.137, allocations: 29.92 kB / 370.4 MB, free: 1.125 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5e-05/0.1371, allocations: 19.44 kB / 370.4 MB, free: 1.105 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1371, allocations: 0 / 370.4 MB, free: 1.105 MB / 302.1 MB Notification: Performance of Templates: time 0.2276/0.3647, allocations: 1.76 MB / 372.2 MB, free: 18.55 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","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches