Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000959/0.000959, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008437/0.0008437, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9944/0.9944, allocations: 173.4 MB / 201.1 MB, free: 9.352 MB / 186.7 MB " [Timeout remaining time 179] 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.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.784e-05/2.955e-05, allocations: 10.25 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004296/0.004325, allocations: 2.829 MB / 270.8 MB, free: 3.598 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.005642, allocations: 0.7244 MB / 271.6 MB, free: 2.867 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001487/0.00579, allocations: 4 kB / 271.6 MB, free: 2.863 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002389/0.006029, allocations: 71.31 kB / 271.6 MB, free: 2.793 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002921/0.006321, allocations: 95.17 kB / 271.7 MB, free: 2.699 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002746/0.006596, allocations: 111.8 kB / 271.8 MB, free: 2.59 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003988/0.006995, allocations: 398.3 kB / 272.2 MB, free: 2.199 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.007196, allocations: 91.27 kB / 272.3 MB, free: 2.109 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003313/0.007527, allocations: 239.4 kB / 272.5 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001854/0.007713, allocations: 119.7 kB / 272.7 MB, free: 1.758 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.586e-05/0.007768, allocations: 32 kB / 272.7 MB, free: 1.727 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.125e-05/0.00782, allocations: 40 kB / 272.7 MB, free: 1.688 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.404e-05/0.007884, allocations: 79.66 kB / 272.8 MB, free: 1.609 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.008008, allocations: 115.7 kB / 272.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003397/0.008347, allocations: 247.1 kB / 273.2 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.008352, allocations: 4 kB / 273.2 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.008353, allocations: 0 / 273.2 MB, free: 1.25 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.008359, allocations: 0 / 273.2 MB, free: 1.25 MB / 250.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.000996/0.009355, allocations: 0.6674 MB / 273.8 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.009397, allocations: 12.03 kB / 273.8 MB, free: 0.5352 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.009506, allocations: 64.7 kB / 273.9 MB, free: 484 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/0.009814, allocations: 211.8 kB / 274.1 MB, free: 244 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.899e-05/0.009853, allocations: 29.03 kB / 274.1 MB, free: 212 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.19e-05/0.009905, allocations: 28.38 kB / 274.2 MB, free: 184 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004789/0.01038, allocations: 235.3 kB / 274.4 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.0104, allocations: 4.172 kB / 274.4 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.01043, allocations: 8.375 kB / 274.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.01044, allocations: 11.94 kB / 274.4 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002945/0.01073, allocations: 131.8 kB / 274.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00142/0.01215, allocations: 0.9096 MB / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002697/0.01242, allocations: 106.5 kB / 275.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.854e-05/0.0125, allocations: 31.67 kB / 275.6 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.01253, allocations: 11.94 kB / 275.6 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.01256, allocations: 37.39 kB / 275.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.914e-06/0.01256, allocations: 0 / 275.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.001194/0.01376, allocations: 425.6 kB / 276.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.0138, allocations: 55.41 kB / 276.1 MB, free: 14.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002884/0.01408, allocations: 312.1 kB / 276.4 MB, free: 13.79 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.01411, allocations: 29.7 kB / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000432/0.01454, allocations: 274.8 kB / 276.7 MB, free: 13.48 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.295e-05/0.0146, allocations: 83.33 kB / 276.8 MB, free: 13.4 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.0147, allocations: 71.31 kB / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.01487, allocations: 0.5117 MB / 277.4 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.01499, allocations: 47.69 kB / 277.4 MB, free: 12.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.01518, allocations: 175.6 kB / 277.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.01547, allocations: 236.8 kB / 277.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.01547, allocations: 0 / 277.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005125/0.01599, allocations: 311.1 kB / 278.1 MB, free: 11.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.01601, allocations: 8 kB / 278.1 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.01601, allocations: 0 / 278.1 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004121/0.01642, allocations: 79.38 kB / 278.2 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002566/0.01668, allocations: 71.89 kB / 278.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001947/0.01863, allocations: 3.535 MB / 281.8 MB, free: 7.961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000184/0.01881, allocations: 20.05 kB / 281.8 MB, free: 7.941 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.491e-05/0.01884, allocations: 16 kB / 281.9 MB, free: 7.926 MB / 266.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 (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001263/0.01896, allocations: 176.4 kB / 282 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.016e-05/0.01902, allocations: 35.81 kB / 282.1 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.781e-05/0.01907, allocations: 34.2 kB / 282.1 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.01907, allocations: 4 kB / 282.1 MB, free: 7.672 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.01908, allocations: 0 / 282.1 MB, free: 7.672 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.01908, allocations: 3.984 kB / 282.1 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002751/0.01936, allocations: 228.5 kB / 282.3 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.01936, allocations: 0 / 282.3 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.01949, allocations: 35.97 kB / 282.4 MB, free: 7.375 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003093/0.0198, allocations: 71.31 kB / 282.4 MB, free: 7.297 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.675e-05/0.01982, allocations: 11.88 kB / 282.4 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002094/0.02191, allocations: 3.527 MB / 286 MB, free: 3.508 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.02192, allocations: 3.938 kB / 286 MB, free: 3.504 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003972/0.02231, allocations: 339 kB / 286.3 MB, free: 3.145 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.293e-05/0.02235, allocations: 27.84 kB / 286.3 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.02237, allocations: 0 / 286.3 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.02251, allocations: 12 kB / 286.3 MB, free: 3.105 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.124e-05/0.02258, allocations: 24.03 kB / 286.4 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.0226, allocations: 7.984 kB / 286.4 MB, free: 3.074 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001644/0.02276, allocations: 205.1 kB / 286.6 MB, free: 2.875 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.02276, allocations: 0 / 286.6 MB, free: 2.875 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004226/0.02319, allocations: 76 kB / 286.7 MB, free: 2.801 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (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.0001153/0.0233, allocations: 103.2 kB / 286.8 MB, free: 2.691 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005936/0.02389, allocations: 0.4912 MB / 287.2 MB, free: 2.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.0239, allocations: 0 / 287.2 MB, free: 2.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003048/0.0242, allocations: 423.2 kB / 287.7 MB, free: 1.711 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.02455, allocations: 28.48 kB / 287.7 MB, free: 1.684 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.02566, allocations: 0.5065 MB / 288.2 MB, free: 1.145 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.421e-05/0.02574, allocations: 92.3 kB / 288.3 MB, free: 1.035 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001114/0.02585, allocations: 26.3 kB / 288.3 MB, free: 1.012 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.806e-05/0.02592, allocations: 20.5 kB / 288.3 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.02592, allocations: 0 / 288.3 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of Templates: time 0.006588/0.03251, allocations: 2.912 MB / 291.2 MB, free: 14.11 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8714083237573504]