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.001312/0.001312, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001011/0.001011, allocations: 169.1 kB / 24.91 MB, free: 9.199 MB / 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 0.8742/0.8742, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] 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.563e-06/1.563e-06, allocations: 3.938 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.309e-05/1.466e-05, allocations: 2.312 kB / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003746/0.003761, allocations: 2.802 MB / 276.3 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.004948, allocations: 0.8018 MB / 277.1 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.005074, allocations: 4 kB / 277.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.005259, allocations: 59.44 kB / 277.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002499/0.005509, allocations: 103.1 kB / 277.2 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002539/0.005763, allocations: 111.7 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003556/0.006118, allocations: 398.4 kB / 277.7 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.006288, allocations: 97.94 kB / 277.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003359/0.006624, allocations: 235.4 kB / 278 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001726/0.006797, allocations: 131.6 kB / 278.2 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.631e-05/0.006843, allocations: 32 kB / 278.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.457e-05/0.006888, allocations: 32 kB / 278.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.788e-05/0.006946, allocations: 75.67 kB / 278.3 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.007056, allocations: 119.7 kB / 278.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002751/0.007331, allocations: 266.9 kB / 278.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.007333, allocations: 0 / 278.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.007335, allocations: 4 kB / 278.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.386e-06/0.007338, allocations: 0 / 278.7 MB, free: 12.05 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.0008043/0.008143, allocations: 0.5387 MB / 279.2 MB, free: 11.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/0.008174, allocations: 12.03 kB / 279.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.868e-05/0.008253, allocations: 52.91 kB / 279.3 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/0.008482, allocations: 186.1 kB / 279.5 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.008515, allocations: 33.02 kB / 279.5 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.448e-05/0.008559, allocations: 28.38 kB / 279.5 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003213/0.00888, allocations: 215.3 kB / 279.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.008892, allocations: 192 / 279.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.278e-05/0.008914, allocations: 12.38 kB / 279.8 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.008926, allocations: 11.94 kB / 279.8 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001592/0.009086, allocations: 88.55 kB / 279.8 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.01017, allocations: 0.7445 MB / 280.6 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.01033, allocations: 78.47 kB / 280.7 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.645e-05/0.01038, allocations: 28.84 kB / 280.7 MB, free: 9.91 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.01039, allocations: 8 kB / 280.7 MB, free: 9.902 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.01042, allocations: 42.47 kB / 280.7 MB, free: 9.852 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.353e-06/0.01042, allocations: 0 / 280.7 MB, free: 9.852 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009707/0.01139, allocations: 395.9 kB / 281.1 MB, free: 9.453 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.58e-05/0.01142, allocations: 55.41 kB / 281.2 MB, free: 9.387 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001867/0.0116, allocations: 248.8 kB / 281.4 MB, free: 9.133 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.01162, allocations: 29.7 kB / 281.5 MB, free: 9.098 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.812e-05/0.01172, allocations: 212 kB / 281.7 MB, free: 8.887 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.37e-05/0.01177, allocations: 87.3 kB / 281.8 MB, free: 8.801 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.781e-05/0.01186, allocations: 65.64 kB / 281.8 MB, free: 8.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.199e-05/0.01195, allocations: 342.7 kB / 282.2 MB, free: 8.387 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.245e-05/0.01201, allocations: 31.92 kB / 282.2 MB, free: 8.355 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.01213, allocations: 116.2 kB / 282.3 MB, free: 8.195 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.01233, allocations: 193.1 kB / 282.5 MB, free: 7.965 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.01233, allocations: 4 kB / 282.5 MB, free: 7.961 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000405/0.01274, allocations: 237.1 kB / 282.7 MB, free: 7.719 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.01275, allocations: 10.5 kB / 282.7 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.01276, allocations: 4.406 kB / 282.7 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002965/0.01305, allocations: 69.64 kB / 282.8 MB, free: 7.633 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002096/0.01326, allocations: 63.91 kB / 282.9 MB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.01458, allocations: 2.365 MB / 285.2 MB, free: 5.023 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.01474, allocations: 31.92 kB / 285.3 MB, free: 4.992 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.01476, allocations: 8 kB / 285.3 MB, free: 4.984 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.0001001/0.01486, allocations: 141.7 kB / 285.4 MB, free: 4.836 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.869e-05/0.01491, allocations: 23.97 kB / 285.4 MB, free: 4.812 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.138e-05/0.01495, allocations: 26.28 kB / 285.5 MB, free: 4.789 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.01495, allocations: 4 kB / 285.5 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.01496, allocations: 0 / 285.5 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.01496, allocations: 7.922 kB / 285.5 MB, free: 4.777 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002131/0.01518, allocations: 157.8 kB / 285.6 MB, free: 4.605 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.01518, allocations: 0 / 285.6 MB, free: 4.605 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.01529, allocations: 27.98 kB / 285.6 MB, free: 4.578 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002429/0.01553, allocations: 69.64 kB / 285.7 MB, free: 4.504 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.01554, allocations: 8 kB / 285.7 MB, free: 4.496 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.01672, allocations: 2.366 MB / 288.1 MB, free: 1.953 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.01672, allocations: 0 / 288.1 MB, free: 1.953 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002443/0.01697, allocations: 248 kB / 288.3 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.914e-05/0.017, allocations: 23.81 kB / 288.4 MB, free: 1.668 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.54e-05/0.01702, allocations: 4 kB / 288.4 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.01715, allocations: 12.05 kB / 288.4 MB, free: 1.652 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/0.01719, allocations: 27.91 kB / 288.4 MB, free: 1.625 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.305e-06/0.0172, allocations: 0 / 288.4 MB, free: 1.625 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.763e-05/0.01729, allocations: 86.77 kB / 288.5 MB, free: 1.539 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01729, allocations: 0 / 288.5 MB, free: 1.539 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003748/0.01766, allocations: 68 kB / 288.6 MB, free: 1.473 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 8.273e-05/0.01775, allocations: 84.42 kB / 288.6 MB, free: 1.383 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000381/0.01813, allocations: 373.5 kB / 289 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/0.01814, allocations: 4 kB / 289 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002138/0.01835, allocations: 297.9 kB / 289.3 MB, free: 0.668 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001606/0.01851, allocations: 25.31 kB / 289.3 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007116/0.01922, allocations: 0.5389 MB / 289.9 MB, free: 80 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.086e-05/0.01927, allocations: 88.31 kB / 289.9 MB, free: 15.97 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.452e-05/0.01935, allocations: 30.27 kB / 290 MB, free: 15.95 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.028e-05/0.01943, allocations: 87.34 kB / 290.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01943, allocations: 0 / 290.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of Templates: time 0.004437/0.02387, allocations: 2.914 MB / 293 MB, free: 12.98 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] 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","",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.4419326968491077]