Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.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.QuasiStatic.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 98.25 kB / 16.5 MB, free: 6.641 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.001118/0.001118, allocations: 195.1 kB / 17.42 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.321/1.321, allocations: 222.9 MB / 241.1 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009558/0.0009558, allocations: 48.23 kB / 300 MB, free: 6.336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08531/0.08628, allocations: 49.44 MB / 349.4 MB, free: 4.883 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance): time 0.004461/0.09077, allocations: 3.713 MB / 353.1 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002131/0.09293, allocations: 1.414 MB / 354.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.09308, allocations: 12 kB / 354.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001514/0.09462, allocations: 0.7028 MB / 355.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001138/0.09577, allocations: 0.5058 MB / 355.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007972/0.09658, allocations: 405.3 kB / 356.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003816/0.09697, allocations: 438 kB / 356.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007363/0.09772, allocations: 352.9 kB / 356.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000248/0.09798, allocations: 191.2 kB / 357.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002535/0.09824, allocations: 263 kB / 357.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.143e-05/0.0983, allocations: 32 kB / 357.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003763/0.09869, allocations: 191.9 kB / 357.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.931e-05/0.09877, allocations: 103.5 kB / 357.7 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001822/0.09896, allocations: 222.8 kB / 357.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007554/0.09972, allocations: 0.6541 MB / 358.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.09974, allocations: 7.984 kB / 358.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.09975, allocations: 0 / 358.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.09976, allocations: 0 / 358.6 MB, free: 11.68 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.002129/0.1019, allocations: 0.9001 MB / 359.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.1019, allocations: 8.031 kB / 359.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004087/0.106, allocations: 495.9 kB / 359.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004144/0.1065, allocations: 307.6 kB / 360.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.1065, allocations: 45.62 kB / 360.3 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.184e-05/0.1066, allocations: 52.38 kB / 360.3 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009355/0.1075, allocations: 0.5142 MB / 360.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.1076, allocations: 8 kB / 360.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.948e-05/0.1076, allocations: 20 kB / 360.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.1076, allocations: 12 kB / 360.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.1087, allocations: 0.5634 MB / 361.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002858/0.1116, allocations: 1.865 MB / 363.3 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002047/0.1137, allocations: 2.195 MB / 365.5 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003426/0.114, allocations: 210.1 kB / 365.7 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.611e-05/0.1141, allocations: 93.52 kB / 365.8 MB, free: 3.801 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.1142, allocations: 46.94 kB / 365.9 MB, free: 3.742 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.314e-06/0.1142, allocations: 0 / 365.9 MB, free: 3.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.001907/0.1161, allocations: 0.7895 MB / 366.7 MB, free: 2.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.283e-05/0.1162, allocations: 55.84 kB / 366.7 MB, free: 2.859 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001789/0.1164, allocations: 190.3 kB / 366.9 MB, free: 2.664 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.1164, allocations: 29.7 kB / 366.9 MB, free: 2.629 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.1165, allocations: 216.4 kB / 367.1 MB, free: 2.414 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.1166, allocations: 165.6 kB / 367.3 MB, free: 2.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.1168, allocations: 78.25 kB / 367.4 MB, free: 2.168 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.1169, allocations: 346.7 kB / 367.7 MB, free: 1.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002945/0.1172, allocations: 153 kB / 367.9 MB, free: 1.672 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003433/0.1175, allocations: 224.8 kB / 368.1 MB, free: 1.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006445/0.1182, allocations: 399.4 kB / 368.5 MB, free: 1.016 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1182, allocations: 4 kB / 368.5 MB, free: 1.012 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009913/0.1192, allocations: 0.5199 MB / 369 MB, free: 496 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.1192, allocations: 8.219 kB / 369 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.1193, allocations: 7.938 kB / 369 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003413/0.1196, allocations: 88.8 kB / 369.1 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003779/0.12, allocations: 91.89 kB / 369.2 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1405/0.2605, allocations: 1.845 MB / 371 MB, free: 24.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.2609, allocations: 49.55 kB / 371.1 MB, free: 24.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.645e-05/0.2609, allocations: 18.23 kB / 371.1 MB, free: 24.19 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001851/0.2611, allocations: 169.3 kB / 371.3 MB, free: 24.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.154e-05/0.2612, allocations: 25.41 kB / 371.3 MB, free: 24.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001107/0.2623, allocations: 0.5429 MB / 371.8 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.2623, allocations: 4.844 kB / 371.8 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2623, allocations: 11.08 kB / 371.8 MB, free: 24.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.2623, allocations: 4 kB / 371.8 MB, free: 24.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001528/0.2639, allocations: 1.131 MB / 373 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2639, allocations: 0 / 373 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003165/0.2642, allocations: 80.3 kB / 373.1 MB, free: 23.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002824/0.2645, allocations: 83.83 kB / 373.1 MB, free: 23.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.919e-05/0.2645, allocations: 8 kB / 373.1 MB, free: 23.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/0.2661, allocations: 1.85 MB / 375 MB, free: 21.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2661, allocations: 1.688 kB / 375 MB, free: 21.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/0.2673, allocations: 0.7902 MB / 375.8 MB, free: 21.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.077e-05/0.2674, allocations: 115.6 kB / 375.9 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.896e-05/0.2674, allocations: 9.984 kB / 375.9 MB, free: 21.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002366/0.2677, allocations: 20 kB / 375.9 MB, free: 21.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.2678, allocations: 32.45 kB / 376 MB, free: 21.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.772e-05/0.2678, allocations: 16.86 kB / 376 MB, free: 21.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001015/0.2679, allocations: 138.1 kB / 376.1 MB, free: 21.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2679, allocations: 0 / 376.1 MB, free: 21.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005777/0.2685, allocations: 149.5 kB / 376.3 MB, free: 21.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * 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 (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002296/0.2688, allocations: 143.4 kB / 376.4 MB, free: 21.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.2698, allocations: 0.5609 MB / 377 MB, free: 20.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2699, allocations: 1.062 kB / 377 MB, free: 20.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005093/0.2704, allocations: 381.1 kB / 377.3 MB, free: 20.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004145/0.2708, allocations: 27.84 kB / 377.4 MB, free: 20.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.2721, allocations: 1.015 MB / 378.4 MB, free: 19.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.2724, allocations: 0.8104 MB / 379.2 MB, free: 19.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002101/0.2726, allocations: 45.56 kB / 379.2 MB, free: 19.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.903e-05/0.2727, allocations: 28.39 kB / 379.3 MB, free: 19.2 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2727, allocations: 4 kB / 379.3 MB, free: 19.19 MB / 302.1 MB Notification: Performance of Templates: time 0.008343/0.281, allocations: 4.088 MB / 383.4 MB, free: 18.88 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches