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.001729/0.001729, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001977/0.001977, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.4 MB / 246.3 MB, free: 9.137 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 68.23 kB / 306.3 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.109, allocations: 50.54 MB / 356.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004118/0.1132, allocations: 2.948 MB / 359.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.1144, allocations: 0.705 MB / 360.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.1145, allocations: 4 kB / 360.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001993/0.1148, allocations: 47.62 kB / 360.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001481/0.1149, allocations: 71.38 kB / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.1152, allocations: 83.94 kB / 360.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003966/0.1156, allocations: 358.4 kB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003017/0.1159, allocations: 132.9 kB / 361.1 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003134/0.1162, allocations: 135.5 kB / 361.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002284/0.1165, allocations: 159.2 kB / 361.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.923e-05/0.1165, allocations: 20 kB / 361.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.922e-05/0.1166, allocations: 24 kB / 361.5 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.965e-05/0.1166, allocations: 59.75 kB / 361.5 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.1168, allocations: 159.2 kB / 361.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003972/0.1173, allocations: 362.9 kB / 362 MB, free: 9.016 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.1173, allocations: 0 / 362 MB, free: 9.016 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1173, allocations: 0 / 362 MB, free: 9.016 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.1173, allocations: 0 / 362 MB, free: 9.016 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.001213/0.1185, allocations: 0.6122 MB / 362.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.1186, allocations: 8.031 kB / 362.7 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.1187, allocations: 44.47 kB / 362.7 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004201/0.1191, allocations: 259.8 kB / 363 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.1191, allocations: 21.03 kB / 363 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.512e-05/0.1192, allocations: 36.38 kB / 363 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006131/0.1198, allocations: 278.4 kB / 363.3 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.1199, allocations: 0 / 363.3 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.83e-05/0.1199, allocations: 15.94 kB / 363.3 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.1199, allocations: 4 kB / 363.3 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004843/0.1204, allocations: 206.5 kB / 363.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001567/0.122, allocations: 0.9829 MB / 364.5 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003001/0.1223, allocations: 170.5 kB / 364.6 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000167/0.1225, allocations: 76.83 kB / 364.7 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.1225, allocations: 4 kB / 364.7 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.1225, allocations: 30.56 kB / 364.8 MB, free: 6.102 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 2.755e-06/0.1226, allocations: 3.984 kB / 364.8 MB, free: 6.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005593/0.1231, allocations: 212.8 kB / 365 MB, free: 5.887 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.1232, allocations: 59.41 kB / 365 MB, free: 5.816 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002277/0.1234, allocations: 210.7 kB / 365.2 MB, free: 5.602 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/0.1234, allocations: 37.64 kB / 365.3 MB, free: 5.559 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.1236, allocations: 192 kB / 365.5 MB, free: 5.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.08e-05/0.1237, allocations: 63.09 kB / 365.5 MB, free: 5.305 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.1238, allocations: 49.61 kB / 365.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.124, allocations: 330.8 kB / 365.9 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/0.1241, allocations: 59.97 kB / 366 MB, free: 4.859 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002255/0.1244, allocations: 122 kB / 366.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003724/0.1247, allocations: 177.9 kB / 366.2 MB, free: 4.523 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.1248, allocations: 0 / 366.2 MB, free: 4.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005107/0.1253, allocations: 245.2 kB / 366.5 MB, free: 4.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.1253, allocations: 8 kB / 366.5 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.1253, allocations: 0 / 366.5 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.384e-05/0.1254, allocations: 4 kB / 366.5 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002981/0.1257, allocations: 68.03 kB / 366.6 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.1257, allocations: 4 kB / 366.6 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001633/0.1259, allocations: 35.67 kB / 366.6 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.733e-05/0.1259, allocations: 4 kB / 366.6 MB, free: 4.156 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.000171/0.1261, allocations: 149.7 kB / 366.7 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.621e-05/0.1261, allocations: 15.81 kB / 366.8 MB, free: 3.984 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003915/0.1265, allocations: 183.5 kB / 366.9 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.1265, allocations: 4 kB / 366.9 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1265, allocations: 7.875 kB / 367 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1266, allocations: 0 / 367 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003728/0.1269, allocations: 333.2 kB / 367.3 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.1269, allocations: 0 / 367.3 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002603/0.1272, allocations: 47.97 kB / 367.3 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1272, allocations: 0 / 367.3 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.1272, allocations: 4 kB / 367.3 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1273, allocations: 4 kB / 367.3 MB, free: 3.355 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.726e-06/0.1273, allocations: 4 kB / 367.3 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005486/0.1278, allocations: 358.6 kB / 367.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.148e-05/0.1279, allocations: 96.98 kB / 367.8 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.03e-05/0.1279, allocations: 0 / 367.8 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.1281, allocations: 19.98 kB / 367.8 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.352e-05/0.1282, allocations: 11.98 kB / 367.8 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.1282, allocations: 8 kB / 367.8 MB, free: 2.836 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001253/0.1283, allocations: 148.6 kB / 368 MB, free: 2.691 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1283, allocations: 0 / 368 MB, free: 2.691 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003209/0.1286, allocations: 79.69 kB / 368 MB, free: 2.613 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.0001592/0.1288, allocations: 99.25 kB / 368.1 MB, free: 2.508 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003695/0.1292, allocations: 159.8 kB / 368.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1292, allocations: 0 / 368.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000152/0.1294, allocations: 75.89 kB / 368.4 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.1298, allocations: 31.89 kB / 368.4 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.1312, allocations: 0.9534 MB / 369.4 MB, free: 1.266 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005032/0.1317, allocations: 0.7676 MB / 370.1 MB, free: 480 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.36e-05/0.1318, allocations: 13.95 kB / 370.1 MB, free: 468 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.357e-05/0.1318, allocations: 27.42 kB / 370.2 MB, free: 440 kB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1319, allocations: 0 / 370.2 MB, free: 440 kB / 302.1 MB Notification: Performance of Templates: time 0.1739/0.3058, allocations: 1.847 MB / 372 MB, free: 19.23 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