Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.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.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance") translateModel(Modelica.Electrical.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 114.6 kB / 16.63 MB, free: 6.812 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.001837/0.001837, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.517/1.517, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001031/0.001032, allocations: 50.61 kB / 300.1 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09494/0.09598, allocations: 49.44 MB / 349.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.005634/0.1017, allocations: 2.931 MB / 352.5 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.1035, allocations: 0.67 MB / 353.2 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004039/0.1039, allocations: 8 kB / 353.2 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002757/0.1043, allocations: 39.62 kB / 353.2 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003355/0.1046, allocations: 71.45 kB / 353.3 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003785/0.105, allocations: 83.86 kB / 353.4 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005803/0.1056, allocations: 382.9 kB / 353.7 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003634/0.106, allocations: 172.4 kB / 353.9 MB, free: 408 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003735/0.1063, allocations: 147.5 kB / 354.1 MB, free: 260 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000266/0.1066, allocations: 159.3 kB / 354.2 MB, free: 100 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.091e-05/0.1067, allocations: 32 kB / 354.2 MB, free: 68 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.364e-05/0.1068, allocations: 32 kB / 354.3 MB, free: 36 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.145e-05/0.1069, allocations: 75.69 kB / 354.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002007/0.1071, allocations: 171.2 kB / 354.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004523/0.1075, allocations: 374.9 kB / 354.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.1076, allocations: 0 / 354.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.1076, allocations: 4 kB / 354.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.1076, allocations: 3.938 kB / 354.9 MB, free: 15.42 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.001075/0.1087, allocations: 0.6238 MB / 355.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.1087, allocations: 8.031 kB / 355.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.1089, allocations: 40.47 kB / 355.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003513/0.1092, allocations: 255.8 kB / 355.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.1092, allocations: 25.03 kB / 355.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.641e-05/0.1093, allocations: 28.38 kB / 355.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005709/0.1099, allocations: 282.4 kB / 356.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.1099, allocations: 0 / 356.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.46e-05/0.11, allocations: 16 kB / 356.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.11, allocations: 12 kB / 356.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004675/0.1104, allocations: 218.4 kB / 356.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.1121, allocations: 1.022 MB / 357.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.1124, allocations: 170.9 kB / 357.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002776/0.1127, allocations: 132.8 kB / 357.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.1128, allocations: 7.938 kB / 357.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.1128, allocations: 34.56 kB / 357.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.683e-06/0.1128, allocations: 0 / 357.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005881/0.1134, allocations: 221.7 kB / 357.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.1135, allocations: 59.39 kB / 358 MB, free: 12.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.1137, allocations: 215 kB / 358.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.1137, allocations: 33.7 kB / 358.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.1138, allocations: 188 kB / 358.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.435e-05/0.1139, allocations: 74.94 kB / 358.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.73e-05/0.114, allocations: 53.98 kB / 358.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.1141, allocations: 330.8 kB / 358.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.1143, allocations: 68.52 kB / 359 MB, free: 11.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.1145, allocations: 147.3 kB / 359.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003809/0.1149, allocations: 229.1 kB / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1149, allocations: 0 / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005016/0.1154, allocations: 277 kB / 359.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.1154, allocations: 8 kB / 359.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.1155, allocations: 0 / 359.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.1155, allocations: 4 kB / 359.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003174/0.1158, allocations: 75.83 kB / 359.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.1158, allocations: 4 kB / 359.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001686/0.116, allocations: 31.75 kB / 359.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.116, allocations: 8.219 kB / 359.7 MB, free: 10.27 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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.0001501/0.1162, allocations: 153.6 kB / 359.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.854e-05/0.1162, allocations: 27.75 kB / 359.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004233/0.1167, allocations: 191.4 kB / 360.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.1167, allocations: 0 / 360.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.1167, allocations: 7.938 kB / 360.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1167, allocations: 0 / 360.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008317/0.1175, allocations: 0.6083 MB / 360.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1175, allocations: 0 / 360.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002902/0.1178, allocations: 55.97 kB / 360.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.1179, allocations: 4 kB / 360.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.1179, allocations: 0 / 360.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.1179, allocations: 8 kB / 360.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1179, allocations: 4 kB / 360.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005912/0.1185, allocations: 390.5 kB / 361.1 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.035e-05/0.1186, allocations: 92.98 kB / 361.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.741e-05/0.1186, allocations: 8 kB / 361.2 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.1188, allocations: 15.98 kB / 361.3 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.498e-05/0.1189, allocations: 15.98 kB / 361.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.1189, allocations: 7.984 kB / 361.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001288/0.119, allocations: 156.6 kB / 361.4 MB, free: 8.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.119, allocations: 0 / 361.4 MB, free: 8.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003717/0.1194, allocations: 79.62 kB / 361.5 MB, free: 8.352 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.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 (21): * Single equations (assignments): 21 * 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.0001552/0.1196, allocations: 107.2 kB / 361.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004592/0.12, allocations: 184.2 kB / 361.8 MB, free: 8.055 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1201, allocations: 0 / 361.8 MB, free: 8.055 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001676/0.1202, allocations: 80.45 kB / 361.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004097/0.1207, allocations: 33.08 kB / 361.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.1222, allocations: 0.9609 MB / 362.9 MB, free: 6.949 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.1225, allocations: 0.7752 MB / 363.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.1227, allocations: 25.94 kB / 363.7 MB, free: 6.125 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.452e-05/0.1227, allocations: 19.44 kB / 363.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1227, allocations: 0 / 363.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of Templates: time 0.005446/0.1282, allocations: 1.985 MB / 365.7 MB, free: 4.137 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches