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.001031/0.001031, allocations: 96.5 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001427/0.001427, allocations: 207.8 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002438/0.0002437, allocations: 8 kB / 308.4 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1095, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003103/0.1127, allocations: 2.571 MB / 362.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.1139, allocations: 0.6895 MB / 363.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.1141, allocations: 8 kB / 363.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001698/0.1143, allocations: 43.62 kB / 363.2 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001594/0.1144, allocations: 83.38 kB / 363.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.1147, allocations: 71.94 kB / 363.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003577/0.115, allocations: 362.4 kB / 363.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002549/0.1153, allocations: 132.9 kB / 363.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002414/0.1156, allocations: 123.5 kB / 364 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.1157, allocations: 135.3 kB / 364.1 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.256e-05/0.1158, allocations: 16 kB / 364.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.908e-05/0.1158, allocations: 20 kB / 364.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.743e-05/0.1159, allocations: 47.78 kB / 364.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.116, allocations: 172.9 kB / 364.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002658/0.1163, allocations: 283.4 kB / 364.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.1163, allocations: 0 / 364.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1163, allocations: 4 kB / 364.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1164, allocations: 0 / 364.6 MB, free: 8.539 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.0008511/0.1172, allocations: 0.5654 MB / 365.2 MB, free: 7.922 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.1173, allocations: 11.97 kB / 365.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.281e-05/0.1174, allocations: 36.56 kB / 365.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002972/0.1177, allocations: 263.7 kB / 365.5 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.1177, allocations: 29.02 kB / 365.5 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.478e-05/0.1178, allocations: 32.38 kB / 365.6 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005113/0.1183, allocations: 282.3 kB / 365.9 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.1183, allocations: 4 kB / 365.9 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.134e-05/0.1183, allocations: 16 kB / 365.9 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.1183, allocations: 8 kB / 365.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004475/0.1188, allocations: 214.5 kB / 366.1 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.1202, allocations: 0.983 MB / 367.1 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003155/0.1205, allocations: 174.5 kB / 367.2 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.1207, allocations: 84.83 kB / 367.3 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.1207, allocations: 0 / 367.3 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.1208, allocations: 34.55 kB / 367.4 MB, free: 5.637 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.172e-06/0.1208, allocations: 0 / 367.4 MB, free: 5.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005654/0.1213, allocations: 236.1 kB / 367.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.1214, allocations: 51.41 kB / 367.6 MB, free: 5.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/0.1216, allocations: 210.8 kB / 367.8 MB, free: 5.125 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.1216, allocations: 33.7 kB / 367.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.1217, allocations: 192 kB / 368.1 MB, free: 4.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.189e-05/0.1218, allocations: 67.09 kB / 368.1 MB, free: 4.828 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.821e-05/0.1219, allocations: 25.7 kB / 368.2 MB, free: 4.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.122, allocations: 330.8 kB / 368.5 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.1221, allocations: 63.97 kB / 368.5 MB, free: 4.402 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001921/0.1223, allocations: 122 kB / 368.7 MB, free: 4.262 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000353/0.1227, allocations: 201.8 kB / 368.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1227, allocations: 0 / 368.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004633/0.1232, allocations: 261.1 kB / 369.1 MB, free: 3.781 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.1232, allocations: 4 kB / 369.1 MB, free: 3.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1232, allocations: 7.984 kB / 369.1 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.1232, allocations: 4 kB / 369.1 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/0.1235, allocations: 64.03 kB / 369.2 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.1235, allocations: 4 kB / 369.2 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/0.1237, allocations: 31.77 kB / 369.2 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.1237, allocations: 11.94 kB / 369.2 MB, free: 3.656 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.0001341/0.1238, allocations: 141.7 kB / 369.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.412e-05/0.1239, allocations: 23.72 kB / 369.4 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004153/0.1243, allocations: 209.9 kB / 369.6 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1243, allocations: 0 / 369.6 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1243, allocations: 0 / 369.6 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1244, allocations: 0 / 369.6 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003305/0.1247, allocations: 325.3 kB / 369.9 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1247, allocations: 0 / 369.9 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002596/0.125, allocations: 51.97 kB / 370 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.125, allocations: 4 kB / 370 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.125, allocations: 4 kB / 370 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.125, allocations: 0 / 370 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.125, allocations: 4 kB / 370 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005738/0.1256, allocations: 372.1 kB / 370.3 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.071e-05/0.1257, allocations: 92.91 kB / 370.4 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.1257, allocations: 8.062 kB / 370.4 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.1259, allocations: 19.98 kB / 370.5 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.171e-05/0.1259, allocations: 15.92 kB / 370.5 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.126, allocations: 4 kB / 370.5 MB, free: 2.309 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001249/0.1261, allocations: 152.6 kB / 370.6 MB, free: 2.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1261, allocations: 0 / 370.6 MB, free: 2.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.1264, allocations: 75.69 kB / 370.7 MB, free: 2.086 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.0001471/0.1266, allocations: 107.2 kB / 370.8 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004013/0.127, allocations: 163.9 kB / 371 MB, free: 1.812 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.127, allocations: 0 / 371 MB, free: 1.812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001602/0.1271, allocations: 80.16 kB / 371.1 MB, free: 1.734 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003737/0.1275, allocations: 38.45 kB / 371.1 MB, free: 1.699 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.129, allocations: 1.094 MB / 372.2 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1663/0.2953, allocations: 0.7605 MB / 372.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.2954, allocations: 20.19 kB / 373 MB, free: 18.55 MB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2954, allocations: 3.719 kB / 373 MB, free: 18.55 MB / 302.1 MB Notification: Performance of Templates: time 0.007668/0.3031, allocations: 2.839 MB / 375.8 MB, free: 18.46 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches