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.0009858/0.0009858, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.0008582/0.0008582, allocations: 143.8 kB / 24.98 MB, free: 8.816 MB / 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.9419/0.9419, allocations: 173.4 MB / 201.5 MB, free: 9.336 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.723e-06/1.723e-06, allocations: 0 / 268.1 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.975e-05/2.147e-05, allocations: 2.312 kB / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003063/0.003085, allocations: 2.821 MB / 270.9 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.004127, allocations: 0.7282 MB / 271.6 MB, free: 3.172 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.004277, allocations: 7.938 kB / 271.6 MB, free: 3.164 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002028/0.00448, allocations: 67.38 kB / 271.7 MB, free: 3.098 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002238/0.004704, allocations: 95.12 kB / 271.8 MB, free: 3.004 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002174/0.004921, allocations: 107.8 kB / 271.9 MB, free: 2.898 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003061/0.005227, allocations: 410.2 kB / 272.3 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001595/0.005387, allocations: 83.3 kB / 272.4 MB, free: 2.414 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002538/0.005641, allocations: 231.5 kB / 272.6 MB, free: 2.188 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.005773, allocations: 123.6 kB / 272.7 MB, free: 2.066 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.226e-05/0.005815, allocations: 32 kB / 272.7 MB, free: 2.035 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.178e-05/0.005847, allocations: 40 kB / 272.8 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.699e-05/0.005894, allocations: 79.66 kB / 272.9 MB, free: 1.918 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.409e-05/0.005978, allocations: 119.7 kB / 273 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002418/0.00622, allocations: 259 kB / 273.2 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.006223, allocations: 0 / 273.2 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.006224, allocations: 0 / 273.2 MB, free: 1.547 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.00623, allocations: 0 / 273.2 MB, free: 1.547 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.0007412/0.006971, allocations: 0.6596 MB / 273.9 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.007007, allocations: 12.03 kB / 273.9 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.159e-05/0.007089, allocations: 60.7 kB / 274 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002565/0.007345, allocations: 215.7 kB / 274.2 MB, free: 0.543 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.327e-05/0.007378, allocations: 29.03 kB / 274.2 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.925e-05/0.007417, allocations: 32.38 kB / 274.2 MB, free: 492 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004632/0.007881, allocations: 231.3 kB / 274.5 MB, free: 252 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.007891, allocations: 4.188 kB / 274.5 MB, free: 248 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.294e-05/0.007914, allocations: 12.38 kB / 274.5 MB, free: 236 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.007925, allocations: 11.92 kB / 274.5 MB, free: 224 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001887/0.008114, allocations: 131.8 kB / 274.6 MB, free: 96 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.009134, allocations: 0.9057 MB / 275.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001809/0.009315, allocations: 99.12 kB / 275.6 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.573e-05/0.009371, allocations: 38.64 kB / 275.7 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.009394, allocations: 7.984 kB / 275.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.009417, allocations: 41.33 kB / 275.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.563e-06/0.009419, allocations: 0 / 275.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008344/0.01025, allocations: 418.8 kB / 276.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/0.01028, allocations: 55.41 kB / 276.2 MB, free: 14.42 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/0.01048, allocations: 312.1 kB / 276.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.01049, allocations: 29.7 kB / 276.5 MB, free: 14.06 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.01061, allocations: 278.8 kB / 276.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.099e-05/0.01065, allocations: 75.34 kB / 276.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.031e-05/0.01072, allocations: 75.25 kB / 276.9 MB, free: 13.63 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.01084, allocations: 0.5078 MB / 277.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.677e-05/0.01091, allocations: 47.75 kB / 277.5 MB, free: 13.06 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.01106, allocations: 179.7 kB / 277.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.01126, allocations: 236.8 kB / 277.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.01127, allocations: 4 kB / 277.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003475/0.01161, allocations: 307.1 kB / 278.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.01163, allocations: 8 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.01164, allocations: 4 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000297/0.01193, allocations: 79.3 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.01209, allocations: 67.91 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/0.01376, allocations: 3.543 MB / 281.9 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.01387, allocations: 12 kB / 281.9 MB, free: 8.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.01389, allocations: 24.05 kB / 281.9 MB, free: 8.227 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.0001013/0.01399, allocations: 172.5 kB / 282.1 MB, free: 8.047 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.883e-05/0.01403, allocations: 39.75 kB / 282.1 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.012e-05/0.01407, allocations: 30.27 kB / 282.2 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.01407, allocations: 4 kB / 282.2 MB, free: 7.977 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.447e-06/0.01408, allocations: 0 / 282.2 MB, free: 7.977 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.01409, allocations: 0 / 282.2 MB, free: 7.977 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001984/0.01428, allocations: 232.5 kB / 282.4 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.01429, allocations: 4 kB / 282.4 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.39e-05/0.01437, allocations: 35.91 kB / 282.4 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002012/0.01457, allocations: 67.31 kB / 282.5 MB, free: 7.602 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.01458, allocations: 15.94 kB / 282.5 MB, free: 7.586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/0.01591, allocations: 3.527 MB / 286 MB, free: 3.809 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.01592, allocations: 0 / 286 MB, free: 3.809 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003573/0.01627, allocations: 342.9 kB / 286.4 MB, free: 3.445 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.827e-05/0.0163, allocations: 19.92 kB / 286.4 MB, free: 3.426 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.505e-05/0.01633, allocations: 4 kB / 286.4 MB, free: 3.422 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.01645, allocations: 11.98 kB / 286.4 MB, free: 3.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.411e-05/0.01651, allocations: 15.97 kB / 286.4 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.01652, allocations: 4 kB / 286.4 MB, free: 3.391 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000142/0.01666, allocations: 213.1 kB / 286.6 MB, free: 3.184 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01666, allocations: 0 / 286.6 MB, free: 3.184 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003836/0.01705, allocations: 75.94 kB / 286.7 MB, free: 3.109 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.0001103/0.01716, allocations: 107.3 kB / 286.8 MB, free: 2.996 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005294/0.01769, allocations: 499 kB / 287.3 MB, free: 2.469 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.01769, allocations: 0 / 287.3 MB, free: 2.469 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002672/0.01795, allocations: 423.1 kB / 287.7 MB, free: 2.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003305/0.01829, allocations: 36.38 kB / 287.8 MB, free: 1.984 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.01933, allocations: 0.51 MB / 288.3 MB, free: 1.445 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.195e-05/0.0194, allocations: 88.31 kB / 288.3 MB, free: 1.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.749e-05/0.0195, allocations: 30.28 kB / 288.4 MB, free: 1.312 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.783e-05/0.01956, allocations: 20.5 kB / 288.4 MB, free: 1.293 MB / 266.7 MB Notification: Performance of SimCode: time 9.72e-07/0.01956, allocations: 0 / 288.4 MB, free: 1.293 MB / 266.7 MB Notification: Performance of Templates: time 0.006445/0.026, allocations: 2.802 MB / 291.2 MB, free: 14.52 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.783919445006177]