Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.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.BasicComponents,tolerance=1e-05,outputFormat="mat",numberOfIntervals=9332,variableFilter="time|converter.Phi|converter.i|converter1.i|eddyCurrent.Phi|leakageWithCoefficient.port_p.Phi",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents") translateModel(ModelicaTest.Magnetic.FluxTubes.BasicComponents,tolerance=1e-05,outputFormat="mat",numberOfIntervals=9332,variableFilter="time|converter.Phi|converter.i|converter1.i|eddyCurrent.Phi|leakageWithCoefficient.port_p.Phi",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000912/0.000912, allocations: 178.2 kB / 17.41 MB, free: 4.293 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.549/1.549, allocations: 225.7 MB / 243.9 MB, free: 8.508 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.000825/0.000825, allocations: 94.2 kB / 295 MB, free: 9.527 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.3719/0.3719, allocations: 44.32 MB / 390.5 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003881/0.0003881, allocations: 11.94 kB / 463.1 MB, free: 500 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.3679, allocations: 61.9 MB / 0.5127 GB, free: 37.82 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.BasicComponents): time 0.003255/0.3712, allocations: 3.005 MB / 0.5157 GB, free: 35.68 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.3725, allocations: 0.7696 MB / 0.5164 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000177/0.3726, allocations: 7.438 kB / 0.5164 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.3728, allocations: 53.44 kB / 0.5165 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002145/0.373, allocations: 111.1 kB / 0.5166 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003472/0.3734, allocations: 99.7 kB / 0.5167 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003972/0.3738, allocations: 0.5008 MB / 0.5172 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003036/0.3741, allocations: 206.6 kB / 0.5174 GB, free: 34.59 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002107/0.3743, allocations: 177.3 kB / 0.5175 GB, free: 34.52 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002236/0.3746, allocations: 206 kB / 0.5177 GB, free: 34.41 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.881e-05/0.3746, allocations: 25.34 kB / 0.5178 GB, free: 34.41 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.516e-05/0.3747, allocations: 26.09 kB / 0.5178 GB, free: 34.41 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.295e-05/0.3748, allocations: 84.41 kB / 0.5179 GB, free: 34.36 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002217/0.375, allocations: 247.3 kB / 0.5181 GB, free: 34.2 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005481/0.3756, allocations: 0.5163 MB / 0.5186 GB, free: 34.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3756, allocations: 0 / 0.5186 GB, free: 34.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3756, allocations: 4.812 kB / 0.5186 GB, free: 34.03 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.206e-06/0.3756, allocations: 0 / 0.5186 GB, free: 34.03 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001112/0.3767, allocations: 0.6946 MB / 0.5193 GB, free: 33.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.3768, allocations: 8.406 kB / 0.5193 GB, free: 33.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.982e-05/0.3769, allocations: 54.03 kB / 0.5193 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003398/0.3772, allocations: 310.9 kB / 0.5196 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.175e-05/0.3773, allocations: 38.31 kB / 0.5197 GB, free: 33.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.509e-05/0.3773, allocations: 50.3 kB / 0.5197 GB, free: 33.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007608/0.3781, allocations: 465.1 kB / 0.5202 GB, free: 32.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.3781, allocations: 3.938 kB / 0.5202 GB, free: 32.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.972e-05/0.3782, allocations: 20.16 kB / 0.5202 GB, free: 32.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.3782, allocations: 15.5 kB / 0.5202 GB, free: 32.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006447/0.3788, allocations: 331.8 kB / 0.5205 GB, free: 32.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002025/0.3809, allocations: 1.7 MB / 0.5222 GB, free: 31.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004886/0.3814, allocations: 245.1 kB / 0.5224 GB, free: 31.54 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002744/0.3817, allocations: 134.7 kB / 0.5225 GB, free: 31.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.3817, allocations: 7.234 kB / 0.5226 GB, free: 31.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.3817, allocations: 37.53 kB / 0.5226 GB, free: 31.44 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.332e-06/0.3817, allocations: 4 kB / 0.5226 GB, free: 31.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002504/0.3842, allocations: 1.366 MB / 0.5239 GB, free: 30.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.3843, allocations: 80.2 kB / 0.524 GB, free: 30.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002178/0.3845, allocations: 259.2 kB / 0.5243 GB, free: 30.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.3845, allocations: 36.42 kB / 0.5243 GB, free: 30.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.3847, allocations: 254.3 kB / 0.5245 GB, free: 30 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.207e-05/0.3847, allocations: 126.7 kB / 0.5246 GB, free: 29.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.443e-05/0.3847, allocations: 6.969 kB / 0.5247 GB, free: 29.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.974e-05/0.3848, allocations: 339.5 kB / 0.525 GB, free: 29.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002361/0.3851, allocations: 113.4 kB / 0.5251 GB, free: 29.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002859/0.3854, allocations: 216.9 kB / 0.5253 GB, free: 29.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005087/0.3859, allocations: 340 kB / 0.5256 GB, free: 29.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3859, allocations: 2.719 kB / 0.5256 GB, free: 29.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006822/0.3866, allocations: 431.4 kB / 0.526 GB, free: 28.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.3866, allocations: 11.41 kB / 0.526 GB, free: 28.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.3866, allocations: 2.812 kB / 0.526 GB, free: 28.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001235/0.3867, allocations: 29.42 kB / 0.5261 GB, free: 28.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004283/0.3872, allocations: 134.2 kB / 0.5262 GB, free: 28.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007453/0.3879, allocations: 1.332 MB / 0.5275 GB, free: 27.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.3882, allocations: 23.3 kB / 0.5275 GB, free: 27.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.356e-05/0.3882, allocations: 15.91 kB / 0.5275 GB, free: 27.57 MB / 378.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 (51): * Single equations (assignments): 50 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001455/0.3883, allocations: 167 kB / 0.5277 GB, free: 27.42 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.16e-05/0.3884, allocations: 33.78 kB / 0.5277 GB, free: 27.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.077e-05/0.3885, allocations: 39.38 kB / 0.5278 GB, free: 27.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3885, allocations: 9.016 kB / 0.5278 GB, free: 27.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3885, allocations: 0 / 0.5278 GB, free: 27.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.3885, allocations: 0 / 0.5278 GB, free: 27.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008817/0.3894, allocations: 0.7154 MB / 0.5285 GB, free: 26.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3894, allocations: 0 / 0.5285 GB, free: 26.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000379/0.3898, allocations: 104 kB / 0.5286 GB, free: 26.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.519e-05/0.3899, allocations: 23.52 kB / 0.5286 GB, free: 26.87 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.983e-05/0.3899, allocations: 6.875 kB / 0.5286 GB, free: 26.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005966/0.3905, allocations: 1.329 MB / 0.5299 GB, free: 25.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3905, allocations: 2.781 kB / 0.5299 GB, free: 25.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008069/0.3913, allocations: 0.6076 MB / 0.5305 GB, free: 25.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.255e-05/0.3914, allocations: 121.8 kB / 0.5306 GB, free: 25.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.593e-05/0.3915, allocations: 15.09 kB / 0.5306 GB, free: 25.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002452/0.3917, allocations: 25.05 kB / 0.5307 GB, free: 25.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.547e-05/0.3918, allocations: 25.05 kB / 0.5307 GB, free: 25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.3918, allocations: 9.109 kB / 0.5307 GB, free: 25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001303/0.392, allocations: 184.3 kB / 0.5309 GB, free: 24.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.392, allocations: 0 / 0.5309 GB, free: 24.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003868/0.3924, allocations: 96.28 kB / 0.531 GB, free: 24.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (converter.i,converter1.i,eddyCurrent.Phi) * 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 (32): * Single equations (assignments): 31 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001064/0.3925, allocations: 112 kB / 0.5311 GB, free: 24.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007516/0.3932, allocations: 427.4 kB / 0.5315 GB, free: 24.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3932, allocations: 2.844 kB / 0.5315 GB, free: 24.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003237/0.3936, allocations: 246.8 kB / 0.5317 GB, free: 24.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000498/0.3941, allocations: 49.94 kB / 0.5318 GB, free: 24.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.3956, allocations: 1.179 MB / 0.5329 GB, free: 23.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002363/0.3958, allocations: 0.8096 MB / 0.5337 GB, free: 22.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001615/0.396, allocations: 40.19 kB / 0.5337 GB, free: 22.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.06e-05/0.3961, allocations: 31.44 kB / 0.5338 GB, free: 22.86 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3961, allocations: 0 / 0.5338 GB, free: 22.86 MB / 378.7 MB Notification: Performance of Templates: time 0.00631/0.4024, allocations: 2.891 MB / 0.5366 GB, free: 22.62 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.sim & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/BasicComponents/BasicComponents.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches