Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001827/0.001827, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002224/0.002224, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.459/1.459, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.332e-05/2.478e-05, allocations: 2.312 kB / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.005275/0.005299, allocations: 2.658 MB / 275 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.006855, allocations: 0.7515 MB / 275.7 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.006993, allocations: 4 kB / 275.7 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002326/0.007226, allocations: 63.44 kB / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003082/0.007534, allocations: 99.17 kB / 275.9 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002968/0.007831, allocations: 115.7 kB / 276 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004983/0.008329, allocations: 402.3 kB / 276.4 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/0.008536, allocations: 87.33 kB / 276.5 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005579/0.009094, allocations: 239.4 kB / 276.7 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000223/0.009317, allocations: 123.6 kB / 276.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.85e-05/0.009375, allocations: 32 kB / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.936e-05/0.009434, allocations: 32 kB / 276.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.021e-05/0.009515, allocations: 75.73 kB / 277 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.009674, allocations: 123.7 kB / 277.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005093/0.01018, allocations: 402.7 kB / 277.5 MB, free: 12.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.01019, allocations: 0 / 277.5 MB, free: 12.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.01019, allocations: 0 / 277.5 MB, free: 12.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.341e-06/0.0102, allocations: 4 kB / 277.5 MB, free: 12.64 MB / 266.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.001301/0.0115, allocations: 0.5675 MB / 278.1 MB, free: 12.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.01154, allocations: 15.97 kB / 278.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.01167, allocations: 64.7 kB / 278.1 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004262/0.0121, allocations: 222 kB / 278.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.022e-05/0.01214, allocations: 25.03 kB / 278.4 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.3e-05/0.01221, allocations: 36.3 kB / 278.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006662/0.01288, allocations: 290.6 kB / 278.7 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.01289, allocations: 192 / 278.7 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.665e-05/0.01293, allocations: 16.38 kB / 278.7 MB, free: 11.35 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.01294, allocations: 11.94 kB / 278.7 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006907/0.01363, allocations: 246.5 kB / 279 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001806/0.01544, allocations: 0.8831 MB / 279.8 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004226/0.01586, allocations: 146.5 kB / 280 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002005/0.01606, allocations: 56.83 kB / 280 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.01609, allocations: 4 kB / 280.1 MB, free: 9.938 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.01613, allocations: 42.47 kB / 280.1 MB, free: 9.887 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.213e-06/0.01613, allocations: 4 kB / 280.1 MB, free: 9.883 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.002284/0.01841, allocations: 0.5934 MB / 280.7 MB, free: 9.277 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/0.01846, allocations: 55.41 kB / 280.7 MB, free: 9.211 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003363/0.0188, allocations: 269.8 kB / 281 MB, free: 8.938 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.01883, allocations: 29.69 kB / 281 MB, free: 8.902 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.01903, allocations: 236 kB / 281.3 MB, free: 8.664 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.425e-05/0.01911, allocations: 75.34 kB / 281.3 MB, free: 8.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.01922, allocations: 61.66 kB / 281.4 MB, free: 8.523 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001997/0.01942, allocations: 342.8 kB / 281.7 MB, free: 8.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003187/0.01974, allocations: 95.92 kB / 281.8 MB, free: 8.086 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004205/0.02016, allocations: 192.1 kB / 282 MB, free: 7.852 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007153/0.02088, allocations: 301.1 kB / 282.3 MB, free: 7.516 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.02088, allocations: 4 kB / 282.3 MB, free: 7.512 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009992/0.02188, allocations: 405 kB / 282.7 MB, free: 7.105 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.0219, allocations: 18.69 kB / 282.7 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.02191, allocations: 0 / 282.7 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000555/0.02246, allocations: 86.05 kB / 282.8 MB, free: 7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003497/0.02281, allocations: 75.89 kB / 282.9 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002732/0.02555, allocations: 2.6 MB / 285.5 MB, free: 4.125 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002828/0.02583, allocations: 23.97 kB / 285.5 MB, free: 4.102 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.058e-05/0.02586, allocations: 16 kB / 285.5 MB, free: 4.086 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.0001942/0.02605, allocations: 149.7 kB / 285.7 MB, free: 3.93 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.354e-05/0.02613, allocations: 39.94 kB / 285.7 MB, free: 3.891 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.123e-05/0.02621, allocations: 30.2 kB / 285.7 MB, free: 3.855 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.02621, allocations: 4 kB / 285.7 MB, free: 3.852 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.02622, allocations: 0 / 285.7 MB, free: 3.852 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.02622, allocations: 3.938 kB / 285.7 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003482/0.02657, allocations: 225.2 kB / 286 MB, free: 3.598 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.02657, allocations: 0 / 286 MB, free: 3.598 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002282/0.0268, allocations: 39.97 kB / 286 MB, free: 3.559 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004368/0.02724, allocations: 73.66 kB / 286.1 MB, free: 3.48 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.02726, allocations: 11.92 kB / 286.1 MB, free: 3.469 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002473/0.02974, allocations: 2.577 MB / 288.7 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.02974, allocations: 3.938 kB / 288.7 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008408/0.03058, allocations: 379.8 kB / 289 MB, free: 300 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.03063, allocations: 27.94 kB / 289.1 MB, free: 272 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/0.03066, allocations: 4 kB / 289.1 MB, free: 268 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.03089, allocations: 19.97 kB / 289.1 MB, free: 248 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.224e-05/0.03096, allocations: 16.11 kB / 289.1 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.03098, allocations: 4 kB / 289.1 MB, free: 228 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002215/0.0312, allocations: 189.2 kB / 289.3 MB, free: 40 kB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0312, allocations: 3.938 kB / 289.3 MB, free: 36 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004458/0.03164, allocations: 72.05 kB / 289.4 MB, free: 15.96 MB / 282.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.0001605/0.03181, allocations: 107.2 kB / 289.5 MB, free: 15.85 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001062/0.03287, allocations: 476.6 kB / 289.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.03287, allocations: 0 / 289.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005885/0.03346, allocations: 337 kB / 290.3 MB, free: 15.01 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003816/0.03384, allocations: 28.48 kB / 290.3 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.03517, allocations: 0.5401 MB / 290.8 MB, free: 14.41 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001935/0.03537, allocations: 168.8 kB / 291 MB, free: 14.23 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001291/0.0355, allocations: 30.27 kB / 291 MB, free: 14.2 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.442e-05/0.03557, allocations: 24.5 kB / 291.1 MB, free: 14.18 MB / 282.7 MB Notification: Performance of SimCode: time 5.41e-07/0.03557, allocations: 0 / 291.1 MB, free: 14.18 MB / 282.7 MB Notification: Performance of Templates: time 0.00777/0.04334, allocations: 2.795 MB / 293.9 MB, free: 11.42 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.410229088040069]