Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 105.8 kB / 17.59 MB, free: 5.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 187.3 kB / 18.51 MB, free: 4.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 222.9 MB / 242.2 MB, free: 15.24 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 51.08 kB / 301.3 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09535/0.09638, allocations: 49.45 MB / 350.7 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004271/0.1007, allocations: 2.882 MB / 353.6 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.1021, allocations: 0.6777 MB / 354.3 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003011/0.1024, allocations: 4 kB / 354.3 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002647/0.1027, allocations: 59.38 kB / 354.4 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002828/0.103, allocations: 91.19 kB / 354.4 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003465/0.1033, allocations: 91.89 kB / 354.5 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004694/0.1038, allocations: 374.4 kB / 354.9 MB, free: 244 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003132/0.1042, allocations: 161.3 kB / 355.1 MB, free: 80 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003006/0.1045, allocations: 139.5 kB / 355.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002324/0.1047, allocations: 155.3 kB / 355.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.394e-05/0.1048, allocations: 32 kB / 355.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.018e-05/0.1049, allocations: 32 kB / 355.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.048e-05/0.1049, allocations: 75.75 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001677/0.1051, allocations: 163.2 kB / 355.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000369/0.1055, allocations: 370.9 kB / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1055, allocations: 4 kB / 356 MB, free: 15.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1055, allocations: 3.938 kB / 356 MB, free: 15.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.1055, allocations: 0 / 356 MB, free: 15.12 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.0009874/0.1065, allocations: 0.6121 MB / 356.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1066, allocations: 8.031 kB / 356.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.8e-05/0.1066, allocations: 44.47 kB / 356.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003032/0.107, allocations: 264.2 kB / 356.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/0.107, allocations: 29.03 kB / 357 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.439e-05/0.107, allocations: 28.38 kB / 357 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005152/0.1076, allocations: 278.3 kB / 357.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.1076, allocations: 0 / 357.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.134e-05/0.1076, allocations: 16 kB / 357.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.1076, allocations: 8 kB / 357.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004715/0.1081, allocations: 206.5 kB / 357.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00152/0.1097, allocations: 0.9751 MB / 358.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003389/0.11, allocations: 168.3 kB / 358.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.1102, allocations: 80.77 kB / 358.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.1102, allocations: 3.984 kB / 358.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.1103, allocations: 38.56 kB / 358.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.292e-06/0.1103, allocations: 0 / 358.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005776/0.1109, allocations: 209.6 kB / 358.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.1109, allocations: 55.41 kB / 359 MB, free: 11.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.1111, allocations: 207 kB / 359.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.1111, allocations: 29.7 kB / 359.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.1113, allocations: 188 kB / 359.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.149e-05/0.1113, allocations: 67.09 kB / 359.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.513e-05/0.1114, allocations: 49.61 kB / 359.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.1115, allocations: 330.8 kB / 359.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.1117, allocations: 67.95 kB / 359.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.1119, allocations: 110 kB / 360 MB, free: 10.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003498/0.1123, allocations: 189.8 kB / 360.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1123, allocations: 0 / 360.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000476/0.1128, allocations: 253.3 kB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.1128, allocations: 6.5 kB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1128, allocations: 4 kB / 360.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.1128, allocations: 0 / 360.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/0.1131, allocations: 59.91 kB / 360.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.1131, allocations: 4 kB / 360.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001538/0.1133, allocations: 31.67 kB / 360.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.953e-05/0.1133, allocations: 12 kB / 360.6 MB, free: 10.27 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.0001249/0.1135, allocations: 149.7 kB / 360.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.709e-05/0.1135, allocations: 15.81 kB / 360.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004183/0.1139, allocations: 202.1 kB / 360.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1139, allocations: 0 / 360.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.114, allocations: 0 / 360.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.114, allocations: 0 / 360.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003512/0.1143, allocations: 325.3 kB / 361.2 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1143, allocations: 0 / 361.2 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002786/0.1146, allocations: 55.97 kB / 361.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.1146, allocations: 0 / 361.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.671e-05/0.1147, allocations: 4 kB / 361.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.1147, allocations: 0 / 361.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.1147, allocations: 3.984 kB / 361.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005753/0.1152, allocations: 351 kB / 361.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-05/0.1153, allocations: 92.92 kB / 361.7 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.601e-05/0.1154, allocations: 8.062 kB / 361.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.1155, allocations: 11.98 kB / 361.8 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.55e-05/0.1156, allocations: 15.92 kB / 361.8 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.1156, allocations: 4 kB / 361.8 MB, free: 8.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001273/0.1158, allocations: 160.5 kB / 361.9 MB, free: 8.801 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1158, allocations: 0 / 361.9 MB, free: 8.801 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000334/0.1161, allocations: 71.69 kB / 362 MB, free: 8.73 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.0001224/0.1162, allocations: 111.2 kB / 362.1 MB, free: 8.609 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00043/0.1167, allocations: 163.8 kB / 362.3 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1167, allocations: 0 / 362.3 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.1168, allocations: 79.16 kB / 362.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003896/0.1172, allocations: 36.17 kB / 362.4 MB, free: 8.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.1187, allocations: 0.8555 MB / 363.2 MB, free: 7.449 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003464/0.119, allocations: 0.7635 MB / 364 MB, free: 6.656 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.232e-05/0.1191, allocations: 19.44 kB / 364 MB, free: 6.637 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1191, allocations: 0 / 364 MB, free: 6.637 MB / 302.1 MB Notification: Performance of Templates: time 0.005171/0.1243, allocations: 2.885 MB / 366.9 MB, free: 3.758 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches