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.00133/0.00133, allocations: 115.6 kB / 17.98 MB, free: 4.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001287/0.001287, allocations: 205.8 kB / 18.92 MB, free: 4.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 247.1 MB, free: 8.949 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 63.67 kB / 307.1 MB, free: 0.6953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09937/0.1012, allocations: 50.54 MB / 357.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004401/0.1056, allocations: 2.941 MB / 360.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.1069, allocations: 0.7128 MB / 361.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.107, allocations: 4 kB / 361.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.1072, allocations: 47.62 kB / 361.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001622/0.1074, allocations: 67.39 kB / 361.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002574/0.1077, allocations: 79.92 kB / 361.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004072/0.1081, allocations: 374.4 kB / 361.9 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002812/0.1084, allocations: 153.3 kB / 362 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002748/0.1087, allocations: 147.5 kB / 362.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001905/0.1089, allocations: 159.2 kB / 362.3 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.464e-05/0.1089, allocations: 32 kB / 362.4 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.971e-05/0.109, allocations: 32 kB / 362.4 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.372e-05/0.1091, allocations: 71.77 kB / 362.5 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.1092, allocations: 175.1 kB / 362.6 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.1096, allocations: 279.5 kB / 362.9 MB, free: 8.883 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.1096, allocations: 3.984 kB / 362.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1096, allocations: 0 / 362.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.251e-06/0.1096, allocations: 0 / 362.9 MB, free: 8.879 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.0009856/0.1106, allocations: 0.6122 MB / 363.5 MB, free: 8.215 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.1106, allocations: 8.031 kB / 363.5 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.784e-05/0.1107, allocations: 40.47 kB / 363.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003182/0.111, allocations: 259.8 kB / 363.8 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.104e-05/0.1111, allocations: 29.03 kB / 363.9 MB, free: 7.848 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.64e-05/0.1111, allocations: 32.38 kB / 363.9 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005693/0.1117, allocations: 282.4 kB / 364.2 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.1117, allocations: 0 / 364.2 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.498e-05/0.1118, allocations: 23.92 kB / 364.2 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.1118, allocations: 11.94 kB / 364.2 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004595/0.1122, allocations: 198.5 kB / 364.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.1139, allocations: 0.9868 MB / 365.4 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003368/0.1143, allocations: 162.6 kB / 365.5 MB, free: 6.078 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.1145, allocations: 80.81 kB / 365.6 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.1145, allocations: 0 / 365.6 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.1146, allocations: 38.56 kB / 365.7 MB, free: 5.949 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.383e-06/0.1146, allocations: 0 / 365.7 MB, free: 5.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005567/0.1151, allocations: 208.8 kB / 365.9 MB, free: 5.742 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.1152, allocations: 55.41 kB / 365.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.1154, allocations: 210.8 kB / 366.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.1155, allocations: 33.64 kB / 366.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.1156, allocations: 192 kB / 366.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.897e-05/0.1157, allocations: 67.09 kB / 366.4 MB, free: 5.164 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.103e-05/0.1158, allocations: 49.61 kB / 366.5 MB, free: 5.109 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.1159, allocations: 326.8 kB / 366.8 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.1161, allocations: 63.95 kB / 366.8 MB, free: 4.719 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.1163, allocations: 117.9 kB / 367 MB, free: 4.582 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003823/0.1167, allocations: 181.9 kB / 367.1 MB, free: 4.383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.1167, allocations: 0 / 367.1 MB, free: 4.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004865/0.1172, allocations: 249 kB / 367.4 MB, free: 4.133 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.1172, allocations: 4 kB / 367.4 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.1173, allocations: 0 / 367.4 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.1173, allocations: 4 kB / 367.4 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002938/0.1176, allocations: 60.03 kB / 367.4 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.1176, allocations: 11.98 kB / 367.5 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001494/0.1177, allocations: 27.69 kB / 367.5 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.1178, allocations: 12 kB / 367.5 MB, free: 4.016 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.000148/0.1179, allocations: 141.7 kB / 367.6 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.737e-05/0.118, allocations: 23.83 kB / 367.7 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004434/0.1184, allocations: 183.5 kB / 367.8 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.1185, allocations: 4 kB / 367.8 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.1185, allocations: 3.938 kB / 367.8 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1185, allocations: 3.984 kB / 367.8 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004018/0.1189, allocations: 329.2 kB / 368.2 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1189, allocations: 3.938 kB / 368.2 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002849/0.1192, allocations: 47.97 kB / 368.2 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1192, allocations: 0 / 368.2 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.1192, allocations: 7.984 kB / 368.2 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.1192, allocations: 4 kB / 368.2 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1192, allocations: 3.938 kB / 368.2 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006175/0.1199, allocations: 362.5 kB / 368.6 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.121e-05/0.1199, allocations: 88.92 kB / 368.7 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.369e-05/0.12, allocations: 8.062 kB / 368.7 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/0.1202, allocations: 15.98 kB / 368.7 MB, free: 2.711 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.879e-05/0.1202, allocations: 15.97 kB / 368.7 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.1203, allocations: 4 kB / 368.7 MB, free: 2.691 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001421/0.1204, allocations: 152.6 kB / 368.9 MB, free: 2.543 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1204, allocations: 0 / 368.9 MB, free: 2.543 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003377/0.1208, allocations: 71.69 kB / 368.9 MB, free: 2.473 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.0001344/0.1209, allocations: 103.2 kB / 369 MB, free: 2.363 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004412/0.1213, allocations: 167.7 kB / 369.2 MB, free: 2.199 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1214, allocations: 4 kB / 369.2 MB, free: 2.195 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000165/0.1215, allocations: 71.91 kB / 369.3 MB, free: 2.125 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003821/0.1219, allocations: 38.28 kB / 369.3 MB, free: 2.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.1235, allocations: 0.977 MB / 370.3 MB, free: 1.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.1239, allocations: 0.7673 MB / 371.1 MB, free: 288 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.348e-05/0.124, allocations: 19.44 kB / 371.1 MB, free: 268 kB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.124, allocations: 0 / 371.1 MB, free: 268 kB / 302.1 MB Notification: Performance of Templates: time 0.1577/0.2817, allocations: 2.878 MB / 374 MB, free: 19.13 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.1.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