Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources") translateModel(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 177.7 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 225.7 MB / 243.9 MB, free: 8.465 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008018/0.0008017, allocations: 98.12 kB / 295 MB, free: 9.508 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3828/0.3828, allocations: 44.31 MB / 390.5 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003666/0.0003667, allocations: 8 kB / 463.1 MB, free: 468 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.3531, allocations: 61.9 MB / 0.5127 GB, free: 37.85 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.002308/0.3555, allocations: 2.248 MB / 0.5149 GB, free: 36.24 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.000879/0.3564, allocations: 0.7046 MB / 0.5156 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.3565, allocations: 6.344 kB / 0.5156 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001837/0.3567, allocations: 55.69 kB / 0.5157 GB, free: 35.7 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001999/0.3569, allocations: 79.97 kB / 0.5158 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002427/0.3572, allocations: 100.8 kB / 0.5159 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003287/0.3575, allocations: 402.3 kB / 0.5162 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/0.3577, allocations: 123.2 kB / 0.5164 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002153/0.3579, allocations: 131.6 kB / 0.5165 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.3581, allocations: 152.1 kB / 0.5166 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.479e-05/0.3582, allocations: 17.62 kB / 0.5166 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.556e-05/0.3582, allocations: 16.75 kB / 0.5167 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.135e-05/0.3583, allocations: 64.81 kB / 0.5167 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.3584, allocations: 183.8 kB / 0.5169 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003067/0.3587, allocations: 399.3 kB / 0.5173 GB, free: 34.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3587, allocations: 0 / 0.5173 GB, free: 34.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3587, allocations: 0 / 0.5173 GB, free: 34.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.3588, allocations: 0 / 0.5173 GB, free: 34.9 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0008413/0.3596, allocations: 0.6127 MB / 0.5179 GB, free: 34.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.3597, allocations: 8.688 kB / 0.5179 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.625e-05/0.3597, allocations: 41.56 kB / 0.5179 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002573/0.36, allocations: 269.8 kB / 0.5182 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.036e-05/0.36, allocations: 30.94 kB / 0.5182 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.501e-05/0.3601, allocations: 34.8 kB / 0.5182 GB, free: 34.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007237/0.3608, allocations: 374.9 kB / 0.5186 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.3608, allocations: 4.781 kB / 0.5186 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.35e-05/0.3609, allocations: 11.81 kB / 0.5186 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.3609, allocations: 8.094 kB / 0.5186 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005719/0.3615, allocations: 288.3 kB / 0.5189 GB, free: 33.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001868/0.3634, allocations: 1.374 MB / 0.5202 GB, free: 32.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004449/0.3638, allocations: 207.2 kB / 0.5204 GB, free: 32.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001992/0.364, allocations: 93.03 kB / 0.5205 GB, free: 32.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.3641, allocations: 10.03 kB / 0.5205 GB, free: 32.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.788e-05/0.3641, allocations: 37.91 kB / 0.5206 GB, free: 32.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 1.743e-06/0.3641, allocations: 0 / 0.5206 GB, free: 32.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007461/0.3648, allocations: 278.5 kB / 0.5208 GB, free: 32.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.3649, allocations: 131.4 kB / 0.521 GB, free: 32.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002882/0.3652, allocations: 324.7 kB / 0.5213 GB, free: 32.15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/0.3652, allocations: 33.58 kB / 0.5213 GB, free: 32.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.3653, allocations: 237.3 kB / 0.5215 GB, free: 31.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.3654, allocations: 46.34 kB / 0.5216 GB, free: 31.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.179e-05/0.3654, allocations: 6.625 kB / 0.5216 GB, free: 31.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.471e-05/0.3655, allocations: 341.6 kB / 0.5219 GB, free: 31.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.3657, allocations: 91.61 kB / 0.522 GB, free: 31.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002499/0.3659, allocations: 183.1 kB / 0.5222 GB, free: 31.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000448/0.3664, allocations: 261.6 kB / 0.5224 GB, free: 31.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3664, allocations: 2.938 kB / 0.5224 GB, free: 31.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005798/0.367, allocations: 328 kB / 0.5227 GB, free: 31.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.367, allocations: 8.594 kB / 0.5227 GB, free: 31.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.367, allocations: 3.25 kB / 0.5227 GB, free: 31.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.3671, allocations: 3 kB / 0.5228 GB, free: 31.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003791/0.3675, allocations: 105.8 kB / 0.5229 GB, free: 31.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.3675, allocations: 5.719 kB / 0.5229 GB, free: 31.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002446/0.3677, allocations: 58.33 kB / 0.5229 GB, free: 31.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.3677, allocations: 8.688 kB / 0.5229 GB, free: 31.04 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * 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.0001151/0.3679, allocations: 152.8 kB / 0.5231 GB, free: 30.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.512e-05/0.368, allocations: 34.08 kB / 0.5231 GB, free: 30.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.863e-05/0.368, allocations: 37.48 kB / 0.5231 GB, free: 30.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.368, allocations: 3 kB / 0.5231 GB, free: 30.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.368, allocations: 2.781 kB / 0.5231 GB, free: 30.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3681, allocations: 0 / 0.5231 GB, free: 30.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006262/0.3687, allocations: 0.5893 MB / 0.5237 GB, free: 30.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.3687, allocations: 4.594 kB / 0.5237 GB, free: 30.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002622/0.369, allocations: 72.88 kB / 0.5238 GB, free: 30.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.369, allocations: 2.688 kB / 0.5238 GB, free: 30.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.875e-05/0.369, allocations: 14.75 kB / 0.5238 GB, free: 30.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.369, allocations: 10.75 kB / 0.5238 GB, free: 30.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.369, allocations: 3.938 kB / 0.5238 GB, free: 30.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004868/0.3695, allocations: 414.4 kB / 0.5242 GB, free: 30.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.708e-05/0.3696, allocations: 105.1 kB / 0.5243 GB, free: 29.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.995e-05/0.3696, allocations: 6.969 kB / 0.5243 GB, free: 29.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002142/0.3699, allocations: 29.11 kB / 0.5243 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.633e-05/0.37, allocations: 9.266 kB / 0.5244 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.37, allocations: 6.938 kB / 0.5244 GB, free: 29.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002215/0.3702, allocations: 227.7 kB / 0.5246 GB, free: 29.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3702, allocations: 0 / 0.5246 GB, free: 29.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004217/0.3706, allocations: 74.25 kB / 0.5247 GB, free: 29.75 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (15): * Single equations (assignments): 15 * 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.0001297/0.3708, allocations: 111.8 kB / 0.5248 GB, free: 29.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005101/0.3713, allocations: 209.6 kB / 0.525 GB, free: 29.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.3713, allocations: 0.5 kB / 0.525 GB, free: 29.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002045/0.3715, allocations: 97.48 kB / 0.5251 GB, free: 29.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004713/0.372, allocations: 22.22 kB / 0.5251 GB, free: 29.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009321/0.3729, allocations: 0.7018 MB / 0.5258 GB, free: 29.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000206/0.3732, allocations: 0.77 MB / 0.5265 GB, free: 28.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.3733, allocations: 28.53 kB / 0.5265 GB, free: 28.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.278e-05/0.3733, allocations: 18.75 kB / 0.5266 GB, free: 28.34 MB / 378.7 MB Notification: Performance of SimCode: time 1.613e-06/0.3733, allocations: 0 / 0.5266 GB, free: 28.34 MB / 378.7 MB Notification: Performance of Templates: time 0.004327/0.3777, allocations: 1.627 MB / 0.5281 GB, free: 28.17 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches