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.001112/0.001112, allocations: 114.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 204.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 65.36 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08962/0.09161, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003842/0.09549, allocations: 2.899 MB / 361.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.09665, allocations: 0.7089 MB / 362.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.0968, allocations: 8 kB / 362.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001758/0.097, allocations: 63.38 kB / 362.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001565/0.09717, allocations: 91.19 kB / 362.7 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002428/0.09742, allocations: 79.89 kB / 362.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003498/0.09778, allocations: 382.4 kB / 363.1 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.09804, allocations: 153.3 kB / 363.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002618/0.09831, allocations: 151.4 kB / 363.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.09851, allocations: 159.3 kB / 363.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.456e-05/0.09856, allocations: 32 kB / 363.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.635e-05/0.09861, allocations: 36 kB / 363.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.502e-05/0.09868, allocations: 71.77 kB / 363.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.09884, allocations: 167.1 kB / 363.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003304/0.09917, allocations: 378.6 kB / 364.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.09919, allocations: 0 / 364.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.09919, allocations: 0 / 364.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.09921, allocations: 0 / 364.3 MB, free: 7.977 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.0008789/0.1001, allocations: 0.6121 MB / 364.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.1001, allocations: 11.97 kB / 364.9 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.456e-05/0.1002, allocations: 40.41 kB / 364.9 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003105/0.1005, allocations: 259.8 kB / 365.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.232e-05/0.1006, allocations: 25.03 kB / 365.2 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.165e-05/0.1006, allocations: 32.38 kB / 365.2 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004979/0.1011, allocations: 282.4 kB / 365.5 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1011, allocations: 4 kB / 365.5 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.1012, allocations: 16 kB / 365.5 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1012, allocations: 4 kB / 365.5 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004468/0.1016, allocations: 210.4 kB / 365.7 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001458/0.1031, allocations: 0.9712 MB / 366.7 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003445/0.1035, allocations: 158.6 kB / 366.9 MB, free: 5.195 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001868/0.1037, allocations: 84.75 kB / 366.9 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.1037, allocations: 7.984 kB / 366.9 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.1037, allocations: 30.56 kB / 367 MB, free: 5.062 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.773e-06/0.1037, allocations: 0 / 367 MB, free: 5.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005783/0.1043, allocations: 213.6 kB / 367.2 MB, free: 4.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/0.1044, allocations: 55.39 kB / 367.2 MB, free: 4.781 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002238/0.1046, allocations: 206.8 kB / 367.4 MB, free: 4.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.1046, allocations: 25.7 kB / 367.5 MB, free: 4.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.1048, allocations: 196 kB / 367.7 MB, free: 4.344 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.459e-05/0.1049, allocations: 67.09 kB / 367.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.42e-05/0.105, allocations: 49.61 kB / 367.8 MB, free: 4.223 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.1051, allocations: 330.8 kB / 368.1 MB, free: 3.891 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.1053, allocations: 63.89 kB / 368.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001948/0.1055, allocations: 118 kB / 368.3 MB, free: 3.691 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.1058, allocations: 185.8 kB / 368.5 MB, free: 3.488 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1058, allocations: 0 / 368.5 MB, free: 3.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004519/0.1063, allocations: 249.1 kB / 368.7 MB, free: 3.238 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.1063, allocations: 4 kB / 368.7 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.1063, allocations: 4 kB / 368.7 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.1064, allocations: 4 kB / 368.7 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000287/0.1066, allocations: 59.91 kB / 368.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.1067, allocations: 3.984 kB / 368.8 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.1068, allocations: 27.69 kB / 368.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.1069, allocations: 15.94 kB / 368.8 MB, free: 3.121 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.000133/0.107, allocations: 149.8 kB / 369 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.012e-05/0.107, allocations: 19.81 kB / 369 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004027/0.1075, allocations: 185.8 kB / 369.2 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1075, allocations: 0 / 369.2 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1075, allocations: 4 kB / 369.2 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1075, allocations: 3.984 kB / 369.2 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003327/0.1078, allocations: 317.3 kB / 369.5 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1078, allocations: 4 kB / 369.5 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002834/0.1081, allocations: 55.89 kB / 369.5 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.1081, allocations: 4 kB / 369.5 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.1082, allocations: 4 kB / 369.5 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1082, allocations: 0 / 369.5 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1082, allocations: 3.984 kB / 369.5 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005476/0.1087, allocations: 360.1 kB / 369.9 MB, free: 1.953 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.922e-05/0.1088, allocations: 96.95 kB / 370 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.263e-05/0.1088, allocations: 4.062 kB / 370 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.109, allocations: 11.98 kB / 370 MB, free: 1.824 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.949e-05/0.1091, allocations: 19.97 kB / 370 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.1091, allocations: 4 kB / 370 MB, free: 1.801 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001161/0.1092, allocations: 144.6 kB / 370.2 MB, free: 1.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1092, allocations: 0 / 370.2 MB, free: 1.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003363/0.1096, allocations: 83.69 kB / 370.3 MB, free: 1.578 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.0001131/0.1097, allocations: 99.25 kB / 370.4 MB, free: 1.473 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003808/0.1101, allocations: 160.2 kB / 370.5 MB, free: 1.316 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1101, allocations: 0 / 370.5 MB, free: 1.316 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001581/0.1103, allocations: 83.23 kB / 370.6 MB, free: 1.238 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.1106, allocations: 38.38 kB / 370.6 MB, free: 1.203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.1119, allocations: 0.8151 MB / 371.4 MB, free: 368 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.137/0.2489, allocations: 0.7643 MB / 372.2 MB, free: 19.47 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001539/0.2491, allocations: 23.81 kB / 372.2 MB, free: 19.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.899e-05/0.2491, allocations: 21.2 kB / 372.3 MB, free: 19.46 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.2491, allocations: 2.906 kB / 372.3 MB, free: 19.46 MB / 302.1 MB Notification: Performance of Templates: time 0.005813/0.255, allocations: 1.993 MB / 374.2 MB, free: 19.43 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 -s gbode -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