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.002044/0.002045, allocations: 108.1 kB / 16.51 MB, free: 6.707 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.002266/0.002266, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.416/1.416, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 48.66 kB / 299.9 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1196, allocations: 49.45 MB / 349.4 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004249/0.1239, allocations: 2.92 MB / 352.3 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.1251, allocations: 0.6777 MB / 353 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002611/0.1254, allocations: 4 kB / 353 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002542/0.1257, allocations: 51.62 kB / 353 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002328/0.126, allocations: 67.45 kB / 353.1 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.1263, allocations: 79.86 kB / 353.2 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004111/0.1267, allocations: 358.5 kB / 353.5 MB, free: 480 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002476/0.1269, allocations: 136.8 kB / 353.7 MB, free: 340 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.1272, allocations: 127.5 kB / 353.8 MB, free: 212 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001951/0.1274, allocations: 151.3 kB / 353.9 MB, free: 60 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.295e-05/0.1274, allocations: 24 kB / 354 MB, free: 36 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.237e-05/0.1275, allocations: 20 kB / 354 MB, free: 16 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.232e-05/0.1276, allocations: 67.83 kB / 354.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001569/0.1277, allocations: 167.1 kB / 354.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003155/0.1281, allocations: 358.8 kB / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1281, allocations: 0 / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1281, allocations: 0 / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.1281, allocations: 0 / 354.6 MB, free: 15.43 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.0009477/0.129, allocations: 0.6083 MB / 355.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.1291, allocations: 8.031 kB / 355.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.911e-05/0.1292, allocations: 44.41 kB / 355.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002824/0.1295, allocations: 255.8 kB / 355.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.1295, allocations: 25.02 kB / 355.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.087e-05/0.1295, allocations: 36.38 kB / 355.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005254/0.1301, allocations: 278.4 kB / 355.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.1301, allocations: 0 / 355.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.926e-05/0.1302, allocations: 20 kB / 355.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.1302, allocations: 8 kB / 355.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004522/0.1306, allocations: 198.5 kB / 356 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.1323, allocations: 0.9789 MB / 357 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003218/0.1326, allocations: 165.3 kB / 357.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.1328, allocations: 80.81 kB / 357.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.1329, allocations: 0 / 357.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.1329, allocations: 38.5 kB / 357.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.193e-06/0.1329, allocations: 0 / 357.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005367/0.1334, allocations: 213.6 kB / 357.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.1335, allocations: 55.41 kB / 357.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/0.1337, allocations: 207 kB / 357.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.1337, allocations: 25.7 kB / 357.8 MB, free: 12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.983e-05/0.1338, allocations: 192 kB / 358 MB, free: 11.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.882e-05/0.1339, allocations: 67.09 kB / 358 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.309e-05/0.134, allocations: 53.61 kB / 358.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.1341, allocations: 326.8 kB / 358.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/0.1342, allocations: 63.95 kB / 358.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/0.1344, allocations: 117.8 kB / 358.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000353/0.1348, allocations: 189.9 kB / 358.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1348, allocations: 0 / 358.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004606/0.1353, allocations: 241.1 kB / 359 MB, free: 10.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.1353, allocations: 8 kB / 359 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.1353, allocations: 0 / 359 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.1353, allocations: 8.031 kB / 359 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002705/0.1356, allocations: 59.95 kB / 359.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.1356, allocations: 7.938 kB / 359.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.1358, allocations: 27.69 kB / 359.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.919e-05/0.1358, allocations: 16.12 kB / 359.1 MB, free: 10.59 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.0001336/0.136, allocations: 149.6 kB / 359.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.123e-05/0.136, allocations: 15.81 kB / 359.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004044/0.1364, allocations: 187.4 kB / 359.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.1365, allocations: 4 kB / 359.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1365, allocations: 0 / 359.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1365, allocations: 0 / 359.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003634/0.1368, allocations: 329.3 kB / 359.8 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.1369, allocations: 0 / 359.8 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000287/0.1371, allocations: 51.91 kB / 359.9 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.1372, allocations: 0 / 359.9 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.1372, allocations: 4 kB / 359.9 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.1372, allocations: 4 kB / 359.9 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1372, allocations: 7.922 kB / 359.9 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006389/0.1378, allocations: 351.1 kB / 360.2 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.462e-05/0.1379, allocations: 92.91 kB / 360.3 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.138, allocations: 4.062 kB / 360.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.1381, allocations: 15.98 kB / 360.3 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.401e-05/0.1382, allocations: 15.92 kB / 360.3 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.1382, allocations: 4 kB / 360.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001422/0.1384, allocations: 152.6 kB / 360.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1384, allocations: 0 / 360.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003797/0.1388, allocations: 75.69 kB / 360.6 MB, free: 9.055 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.000144/0.1389, allocations: 103.5 kB / 360.7 MB, free: 8.941 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003983/0.1393, allocations: 166.8 kB / 360.8 MB, free: 8.781 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.1393, allocations: 4.25 kB / 360.8 MB, free: 8.777 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.1395, allocations: 71.91 kB / 360.9 MB, free: 8.707 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004172/0.1399, allocations: 31.92 kB / 360.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001559/0.1415, allocations: 0.9571 MB / 361.9 MB, free: 7.688 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005083/0.142, allocations: 0.7676 MB / 362.7 MB, free: 6.891 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.887e-05/0.1421, allocations: 17.95 kB / 362.7 MB, free: 6.875 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.258e-05/0.1422, allocations: 19.44 kB / 362.7 MB, free: 6.855 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1422, allocations: 0 / 362.7 MB, free: 6.855 MB / 302.1 MB Notification: Performance of Templates: time 0.006406/0.1486, allocations: 1.86 MB / 364.6 MB, free: 5.016 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/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