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.0009279/0.000928, allocations: 95.09 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.001084/0.001084, allocations: 207 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.352/1.352, allocations: 227.7 MB / 247.5 MB, free: 11.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002815/0.0002816, allocations: 8 kB / 308.4 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09345/0.09375, allocations: 51.53 MB / 359.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003005/0.0968, allocations: 2.571 MB / 362.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.09816, allocations: 0.6972 MB / 363.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002601/0.09844, allocations: 4 kB / 363.2 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002524/0.09871, allocations: 51.61 kB / 363.2 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003022/0.09903, allocations: 67.39 kB / 363.3 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003082/0.09935, allocations: 87.92 kB / 363.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000464/0.09982, allocations: 354.4 kB / 363.7 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002564/0.1001, allocations: 128.9 kB / 363.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003207/0.1004, allocations: 123.5 kB / 364 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002151/0.1006, allocations: 139.3 kB / 364.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.236e-05/0.1007, allocations: 16 kB / 364.1 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.975e-05/0.1008, allocations: 16 kB / 364.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.474e-05/0.1008, allocations: 51.77 kB / 364.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001527/0.101, allocations: 176.9 kB / 364.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002466/0.1012, allocations: 271.4 kB / 364.6 MB, free: 8.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1012, allocations: 0 / 364.6 MB, free: 8.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.1013, allocations: 3.984 kB / 364.6 MB, free: 8.516 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.1013, allocations: 0 / 364.6 MB, free: 8.516 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.0008669/0.1021, allocations: 0.5615 MB / 365.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.1022, allocations: 16.03 kB / 365.2 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.33e-05/0.1023, allocations: 32.56 kB / 365.3 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003086/0.1026, allocations: 271.7 kB / 365.5 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.1026, allocations: 21.03 kB / 365.5 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.549e-05/0.1027, allocations: 36.36 kB / 365.6 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005458/0.1032, allocations: 286.3 kB / 365.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.1033, allocations: 0 / 365.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.092e-05/0.1033, allocations: 8 kB / 365.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.1033, allocations: 12 kB / 365.9 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004708/0.1038, allocations: 210.5 kB / 366.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.1053, allocations: 0.9947 MB / 367.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003168/0.1056, allocations: 178.4 kB / 367.3 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001788/0.1058, allocations: 88.81 kB / 367.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.1059, allocations: 0 / 367.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.1059, allocations: 34.56 kB / 367.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.072e-06/0.1059, allocations: 0 / 367.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.000567/0.1065, allocations: 232.4 kB / 367.6 MB, free: 5.371 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.1065, allocations: 55.41 kB / 367.7 MB, free: 5.305 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/0.1067, allocations: 210.8 kB / 367.9 MB, free: 5.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.1067, allocations: 29.69 kB / 367.9 MB, free: 5.055 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.1069, allocations: 192 kB / 368.1 MB, free: 4.863 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.281e-05/0.1069, allocations: 63.09 kB / 368.1 MB, free: 4.801 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.649e-05/0.107, allocations: 25.72 kB / 368.2 MB, free: 4.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.1071, allocations: 330.8 kB / 368.5 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.1072, allocations: 67.95 kB / 368.6 MB, free: 4.371 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.1075, allocations: 122 kB / 368.7 MB, free: 4.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003568/0.1078, allocations: 193.8 kB / 368.9 MB, free: 4.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.1078, allocations: 0 / 368.9 MB, free: 4.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005074/0.1083, allocations: 257.2 kB / 369.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.1084, allocations: 8 kB / 369.1 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.1084, allocations: 0 / 369.1 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.1084, allocations: 4 kB / 369.1 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002674/0.1087, allocations: 63.91 kB / 369.2 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.1087, allocations: 4.125 kB / 369.2 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001614/0.1089, allocations: 35.77 kB / 369.2 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.1089, allocations: 8 kB / 369.2 MB, free: 3.641 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.0001244/0.109, allocations: 145.7 kB / 369.4 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.77e-05/0.1091, allocations: 19.72 kB / 369.4 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004252/0.1095, allocations: 205.8 kB / 369.6 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1095, allocations: 0 / 369.6 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.637e-06/0.1095, allocations: 8 kB / 369.6 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1095, allocations: 3.984 kB / 369.6 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003393/0.1099, allocations: 321.3 kB / 369.9 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.1099, allocations: 0 / 369.9 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002708/0.1102, allocations: 51.97 kB / 370 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.1102, allocations: 4 kB / 370 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.069e-05/0.1102, allocations: 11.98 kB / 370 MB, free: 2.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.1102, allocations: 0 / 370 MB, free: 2.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1102, allocations: 0 / 370 MB, free: 2.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006096/0.1108, allocations: 368 kB / 370.3 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.629e-05/0.1109, allocations: 96.98 kB / 370.4 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.111, allocations: 0 / 370.4 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.1111, allocations: 19.98 kB / 370.5 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.76e-05/0.1112, allocations: 19.92 kB / 370.5 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.1112, allocations: 11.98 kB / 370.5 MB, free: 2.281 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001366/0.1114, allocations: 144.6 kB / 370.6 MB, free: 2.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1114, allocations: 0 / 370.6 MB, free: 2.141 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003414/0.1117, allocations: 79.69 kB / 370.7 MB, free: 2.062 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.0001278/0.1118, allocations: 103.2 kB / 370.8 MB, free: 1.953 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004427/0.1123, allocations: 167.9 kB / 371 MB, free: 1.789 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1123, allocations: 0 / 371 MB, free: 1.789 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001663/0.1125, allocations: 86.12 kB / 371.1 MB, free: 1.707 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003635/0.1129, allocations: 36.12 kB / 371.1 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001391/0.1143, allocations: 1.094 MB / 372.2 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1631/0.2773, allocations: 0.7649 MB / 373 MB, free: 18.58 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.2775, allocations: 20.58 kB / 373 MB, free: 18.57 MB / 302.1 MB Notification: Performance of SimCode: time 1.032e-06/0.2775, allocations: 0.7188 kB / 373 MB, free: 18.57 MB / 302.1 MB Notification: Performance of Templates: time 0.007107/0.2846, allocations: 2.84 MB / 375.8 MB, free: 18.47 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