Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001594/0.001594, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.772/1.772, allocations: 229.5 MB / 247.7 MB, free: 6.297 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007776/0.0007775, allocations: 99.69 kB / 299.9 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002451/0.0002451, allocations: 4 kB / 360.6 MB, free: 8.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2611, allocations: 51.42 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.002898/0.264, allocations: 2.462 MB / 414.5 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.2651, allocations: 0.8307 MB / 415.4 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.2653, allocations: 4 kB / 415.4 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000144/0.2654, allocations: 47.62 kB / 415.4 MB, free: 22.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001326/0.2655, allocations: 78.91 kB / 415.5 MB, free: 22.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000221/0.2658, allocations: 75.94 kB / 415.6 MB, free: 22.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002663/0.266, allocations: 354.4 kB / 415.9 MB, free: 22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002477/0.2663, allocations: 132.9 kB / 416 MB, free: 21.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002629/0.2666, allocations: 123.5 kB / 416.2 MB, free: 21.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.2667, allocations: 135.3 kB / 416.3 MB, free: 21.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.317e-05/0.2668, allocations: 16 kB / 416.3 MB, free: 21.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.23e-05/0.2668, allocations: 16 kB / 416.3 MB, free: 21.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.888e-05/0.2669, allocations: 55.75 kB / 416.4 MB, free: 21.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.267, allocations: 176.8 kB / 416.5 MB, free: 21.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002942/0.2673, allocations: 352.1 kB / 416.9 MB, free: 21.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.2673, allocations: 15.92 kB / 416.9 MB, free: 20.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.2674, allocations: 0 / 416.9 MB, free: 20.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.2674, allocations: 0 / 416.9 MB, free: 20.99 MB / 298.7 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.0007709/0.2681, allocations: 0.5615 MB / 417.5 MB, free: 20.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2682, allocations: 8.031 kB / 417.5 MB, free: 20.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.247e-05/0.2683, allocations: 36.56 kB / 417.5 MB, free: 20.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002338/0.2685, allocations: 255.7 kB / 417.8 MB, free: 20.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.2685, allocations: 25.03 kB / 417.8 MB, free: 20.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.49e-05/0.2686, allocations: 32.36 kB / 417.8 MB, free: 19.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004471/0.269, allocations: 282.4 kB / 418.1 MB, free: 19.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.2691, allocations: 0 / 418.1 MB, free: 19.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.2691, allocations: 19.94 kB / 418.1 MB, free: 19.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.2691, allocations: 11.98 kB / 418.1 MB, free: 19.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003834/0.2695, allocations: 206.5 kB / 418.3 MB, free: 19.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.2707, allocations: 0.9869 MB / 419.3 MB, free: 18.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002871/0.271, allocations: 170.6 kB / 419.5 MB, free: 18.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.2712, allocations: 84.81 kB / 419.6 MB, free: 18.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.2713, allocations: 0 / 419.6 MB, free: 18.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.2713, allocations: 34.56 kB / 419.6 MB, free: 18.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 9.01e-07/0.2713, allocations: 0 / 419.6 MB, free: 18.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005103/0.2718, allocations: 234.8 kB / 419.8 MB, free: 17.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.943e-05/0.2719, allocations: 51.41 kB / 419.9 MB, free: 17.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.272, allocations: 214.9 kB / 420.1 MB, free: 17.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.272, allocations: 29.64 kB / 420.1 MB, free: 17.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7e-05/0.2721, allocations: 188 kB / 420.3 MB, free: 17.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.393e-05/0.2722, allocations: 71.08 kB / 420.4 MB, free: 17.3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.047e-06/0.2722, allocations: 4 kB / 420.4 MB, free: 17.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.903e-05/0.2722, allocations: 330.8 kB / 420.7 MB, free: 16.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.2724, allocations: 67.95 kB / 420.8 MB, free: 16.9 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.2726, allocations: 120.9 kB / 420.9 MB, free: 16.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002797/0.2728, allocations: 197.8 kB / 421.1 MB, free: 16.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.2729, allocations: 0 / 421.1 MB, free: 16.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003734/0.2732, allocations: 257 kB / 421.3 MB, free: 16.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.2733, allocations: 4 kB / 421.3 MB, free: 16.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.2733, allocations: 8 kB / 421.3 MB, free: 16.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.2733, allocations: 7.938 kB / 421.3 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002517/0.2736, allocations: 68.02 kB / 421.4 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.2736, allocations: 4 kB / 421.4 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.2737, allocations: 23.84 kB / 421.4 MB, free: 16.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.645e-05/0.2737, allocations: 8 kB / 421.4 MB, free: 16.17 MB / 298.7 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.0001185/0.2739, allocations: 149.6 kB / 421.6 MB, free: 16.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.2739, allocations: 23.72 kB / 421.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003721/0.2743, allocations: 200.8 kB / 421.8 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.2743, allocations: 8.031 kB / 421.8 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.2743, allocations: 3.938 kB / 421.8 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.2743, allocations: 0 / 421.8 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000294/0.2746, allocations: 317.4 kB / 422.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2746, allocations: 4 kB / 422.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002541/0.2749, allocations: 47.97 kB / 422.2 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.2749, allocations: 4 kB / 422.2 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.2749, allocations: 4 kB / 422.2 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2749, allocations: 3.938 kB / 422.2 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.275, allocations: 0 / 422.2 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005453/0.2755, allocations: 373.9 kB / 422.6 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.2756, allocations: 100.8 kB / 422.7 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/0.2756, allocations: 4.062 kB / 422.7 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.2758, allocations: 19.98 kB / 422.7 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.403e-05/0.2758, allocations: 15.98 kB / 422.7 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.2758, allocations: 4 kB / 422.7 MB, free: 14.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001072/0.276, allocations: 148.4 kB / 422.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.276, allocations: 0 / 422.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002943/0.2763, allocations: 79.69 kB / 422.9 MB, free: 14.6 MB / 298.7 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.0001357/0.2764, allocations: 111.2 kB / 423 MB, free: 14.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000338/0.2767, allocations: 163.8 kB / 423.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2768, allocations: 0 / 423.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.2769, allocations: 84.16 kB / 423.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003563/0.2773, allocations: 28.55 kB / 423.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.2785, allocations: 1.065 MB / 424.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001726/0.2786, allocations: 0.7715 MB / 425.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.369e-05/0.2787, allocations: 13.95 kB / 425.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.577e-05/0.2788, allocations: 19.44 kB / 425.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.2788, allocations: 4 kB / 425.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of Templates: time 0.0046/0.2834, allocations: 1.837 MB / 427 MB, free: 10.45 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches