Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance") translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008517/0.0008518, allocations: 178.1 kB / 17.36 MB, free: 4.168 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.311/1.311, allocations: 205.6 MB / 223.7 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007699/0.0007697, allocations: 82.44 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000251/0.0002511, allocations: 11.98 kB / 329 MB, free: 15.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2177/0.218, allocations: 47.57 MB / 376.6 MB, free: 45.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance): time 0.003241/0.2213, allocations: 3.194 MB / 379.8 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00232/0.2236, allocations: 2.152 MB / 382 MB, free: 41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003463/0.224, allocations: 9.469 kB / 382 MB, free: 41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000493/0.2245, allocations: 167.1 kB / 382.1 MB, free: 40.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001252/0.2258, allocations: 0.8828 MB / 383 MB, free: 40.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007804/0.2266, allocations: 0.7609 MB / 383.8 MB, free: 39.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005751/0.2272, allocations: 461.7 kB / 384.2 MB, free: 39.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001185/0.2283, allocations: 1.158 MB / 385.4 MB, free: 37.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003504/0.2287, allocations: 191 kB / 385.6 MB, free: 37.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003554/0.2291, allocations: 252.4 kB / 385.8 MB, free: 37.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.994e-05/0.2292, allocations: 21.16 kB / 385.8 MB, free: 37.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004633/0.2296, allocations: 181 kB / 386 MB, free: 37.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.513e-05/0.2297, allocations: 87.8 kB / 386.1 MB, free: 37.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002248/0.2299, allocations: 239.3 kB / 386.3 MB, free: 37.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007027/0.2306, allocations: 0.6628 MB / 387 MB, free: 36.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2307, allocations: 0 / 387 MB, free: 36.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2307, allocations: 1.281 kB / 387 MB, free: 36.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.708e-05/0.2307, allocations: 0 / 387 MB, free: 36.91 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.001796/0.2325, allocations: 0.8398 MB / 387.8 MB, free: 36.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.2325, allocations: 8.469 kB / 387.8 MB, free: 36.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003759/0.2363, allocations: 0.5971 MB / 388.4 MB, free: 36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003837/0.2367, allocations: 321.3 kB / 388.7 MB, free: 35.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.601e-05/0.2367, allocations: 45.41 kB / 388.8 MB, free: 35.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.2369, allocations: 54.97 kB / 388.8 MB, free: 35.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008863/0.2377, allocations: 0.5609 MB / 389.4 MB, free: 35.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.2378, allocations: 4 kB / 389.4 MB, free: 35.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.708e-05/0.2378, allocations: 20 kB / 389.4 MB, free: 35.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.2378, allocations: 12 kB / 389.4 MB, free: 35.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009301/0.2388, allocations: 0.6454 MB / 390.1 MB, free: 34.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002533/0.2413, allocations: 2.05 MB / 392.1 MB, free: 32.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001678/0.243, allocations: 3.012 MB / 395.1 MB, free: 28.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000305/0.2433, allocations: 222.1 kB / 395.4 MB, free: 28.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.928e-05/0.2434, allocations: 93.53 kB / 395.5 MB, free: 28.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.629e-05/0.2434, allocations: 39 kB / 395.5 MB, free: 28.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.165e-06/0.2434, allocations: 0 / 395.5 MB, free: 28.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.001593/0.245, allocations: 0.8089 MB / 396.3 MB, free: 27.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.322e-05/0.2451, allocations: 63.78 kB / 396.4 MB, free: 27.33 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.2452, allocations: 208.4 kB / 396.6 MB, free: 27.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.2453, allocations: 33.7 kB / 396.6 MB, free: 27.08 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.455e-05/0.2453, allocations: 244.1 kB / 396.8 MB, free: 26.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.589e-05/0.2454, allocations: 161.6 kB / 397 MB, free: 26.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.921e-05/0.2454, allocations: 8 kB / 397 MB, free: 26.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.765e-05/0.2455, allocations: 342.8 kB / 397.3 MB, free: 26.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002524/0.2458, allocations: 161 kB / 397.5 MB, free: 26.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002782/0.246, allocations: 274 kB / 397.8 MB, free: 25.86 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005405/0.2466, allocations: 476.5 kB / 398.2 MB, free: 25.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2466, allocations: 7.875 kB / 398.2 MB, free: 25.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008777/0.2475, allocations: 0.5863 MB / 398.8 MB, free: 24.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.2475, allocations: 14.75 kB / 398.8 MB, free: 24.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.2475, allocations: 4 kB / 398.8 MB, free: 24.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000295/0.2478, allocations: 96.89 kB / 398.9 MB, free: 24.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003654/0.2482, allocations: 103.9 kB / 399 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/0.2496, allocations: 1.846 MB / 400.9 MB, free: 22.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002748/0.2499, allocations: 55.45 kB / 400.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.066e-05/0.2499, allocations: 20 kB / 401 MB, free: 22.48 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (58): * Single equations (assignments): 57 * 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.0001454/0.2501, allocations: 178.8 kB / 401.1 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.089e-05/0.2501, allocations: 27.62 kB / 401.2 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009034/0.251, allocations: 0.5592 MB / 401.7 MB, free: 21.71 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.2511, allocations: 4 kB / 401.7 MB, free: 21.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.2511, allocations: 0 / 401.7 MB, free: 21.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.2511, allocations: 11.92 kB / 401.7 MB, free: 21.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001327/0.2524, allocations: 1.153 MB / 402.9 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2524, allocations: 0 / 402.9 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003014/0.2527, allocations: 83.89 kB / 403 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002333/0.253, allocations: 88.88 kB / 403.1 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.253, allocations: 15.98 kB / 403.1 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001263/0.2543, allocations: 1.842 MB / 404.9 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.2543, allocations: 0 / 404.9 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.2554, allocations: 0.8077 MB / 405.7 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.056e-05/0.2554, allocations: 116.6 kB / 405.8 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.073e-05/0.2555, allocations: 16.06 kB / 405.9 MB, free: 17.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.2557, allocations: 23.92 kB / 405.9 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.721e-05/0.2558, allocations: 36.39 kB / 405.9 MB, free: 17.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.135e-05/0.2558, allocations: 8 kB / 405.9 MB, free: 17.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.91e-05/0.2559, allocations: 152.1 kB / 406.1 MB, free: 17.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2559, allocations: 0 / 406.1 MB, free: 17.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005105/0.2564, allocations: 155.6 kB / 406.2 MB, free: 16.96 MB / 298.7 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 (44): * Single equations (assignments): 43 * 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.000172/0.2566, allocations: 143.2 kB / 406.4 MB, free: 16.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008611/0.2575, allocations: 0.6016 MB / 407 MB, free: 16.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2575, allocations: 0 / 407 MB, free: 16.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004499/0.258, allocations: 388.9 kB / 407.3 MB, free: 15.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.2583, allocations: 40.25 kB / 407.4 MB, free: 15.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.2595, allocations: 1.114 MB / 408.5 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001935/0.2597, allocations: 0.8214 MB / 409.3 MB, free: 13.78 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002102/0.2599, allocations: 55.19 kB / 409.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.885e-05/0.26, allocations: 35.44 kB / 409.4 MB, free: 13.69 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.26, allocations: 0 / 409.4 MB, free: 13.69 MB / 298.7 MB Notification: Performance of Templates: time 0.006969/0.267, allocations: 4.102 MB / 413.5 MB, free: 9.586 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/SeriesResonance/SeriesResonance.csv","../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches