Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.0009706/0.0009706, allocations: 78.19 kB / 21.42 MB, free: 3.074 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.0009623/0.0009623, allocations: 154 kB / 24.81 MB, free: 8.93 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.9859/0.9859, allocations: 173.4 MB / 201.5 MB, free: 8.293 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.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 268.4 MB, free: 9.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.164e-05/2.328e-05, allocations: 12.12 kB / 268.4 MB, free: 9.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.00525/0.005273, allocations: 3.418 MB / 271.8 MB, free: 6.312 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.007184, allocations: 0.9046 MB / 272.7 MB, free: 5.41 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000272/0.007456, allocations: 8.531 kB / 272.8 MB, free: 5.402 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002952/0.007751, allocations: 91.59 kB / 272.8 MB, free: 5.312 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004619/0.008213, allocations: 172.6 kB / 273 MB, free: 5.145 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004228/0.008636, allocations: 167.7 kB / 273.2 MB, free: 4.984 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000743/0.009379, allocations: 0.6541 MB / 273.8 MB, free: 4.328 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002794/0.009658, allocations: 137.9 kB / 274 MB, free: 4.184 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005755/0.01023, allocations: 367.2 kB / 274.3 MB, free: 3.824 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003067/0.01054, allocations: 201.1 kB / 274.5 MB, free: 3.629 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.695e-05/0.01063, allocations: 52 kB / 274.6 MB, free: 3.578 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.471e-05/0.01071, allocations: 52 kB / 274.6 MB, free: 3.527 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.01081, allocations: 127.5 kB / 274.7 MB, free: 3.402 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.01101, allocations: 191.5 kB / 274.9 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005114/0.01152, allocations: 419.2 kB / 275.3 MB, free: 2.805 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.01153, allocations: 3.984 kB / 275.3 MB, free: 2.801 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.01153, allocations: 0 / 275.3 MB, free: 2.801 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.01154, allocations: 0.75 kB / 275.4 MB, free: 2.801 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001284/0.01282, allocations: 0.882 MB / 276.2 MB, free: 1.883 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.01287, allocations: 12.03 kB / 276.2 MB, free: 1.871 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.01302, allocations: 100.6 kB / 276.3 MB, free: 1.773 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004006/0.01342, allocations: 296.1 kB / 276.6 MB, free: 1.457 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.783e-05/0.01347, allocations: 37.69 kB / 276.7 MB, free: 1.418 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.177e-05/0.01354, allocations: 52.38 kB / 276.7 MB, free: 1.367 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000545/0.01408, allocations: 311.7 kB / 277 MB, free: 1.059 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.0141, allocations: 192 / 277 MB, free: 1.059 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.031e-05/0.01414, allocations: 23.94 kB / 277 MB, free: 1.035 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.01415, allocations: 12 kB / 277.1 MB, free: 1.023 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003318/0.01449, allocations: 166.3 kB / 277.2 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002115/0.0166, allocations: 1.266 MB / 278.5 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004256/0.01703, allocations: 205.4 kB / 278.7 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002004/0.01723, allocations: 104.3 kB / 278.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.01726, allocations: 8.312 kB / 278.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.01729, allocations: 53.58 kB / 278.9 MB, free: 15.13 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 2.866e-06/0.0173, allocations: 0 / 278.9 MB, free: 15.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.00192/0.01921, allocations: 0.8145 MB / 279.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/0.01925, allocations: 59.91 kB / 279.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003835/0.01963, allocations: 414.3 kB / 280.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.14e-05/0.01967, allocations: 37.7 kB / 280.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002115/0.01988, allocations: 363.2 kB / 280.5 MB, free: 13.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.02002, allocations: 194.3 kB / 280.7 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000173/0.02019, allocations: 119.9 kB / 280.8 MB, free: 13.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.02039, allocations: 0.5351 MB / 281.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.02054, allocations: 65.25 kB / 281.4 MB, free: 12.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/0.02079, allocations: 230.7 kB / 281.7 MB, free: 12.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004308/0.02122, allocations: 343.9 kB / 282 MB, free: 11.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.02123, allocations: 0 / 282 MB, free: 11.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0008832/0.02211, allocations: 0.5234 MB / 282.5 MB, free: 11.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.02213, allocations: 8 kB / 282.5 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.02214, allocations: 0 / 282.5 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008697/0.02301, allocations: 247 kB / 282.8 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003785/0.02339, allocations: 111.8 kB / 282.9 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003643/0.02703, allocations: 4.683 MB / 287.6 MB, free: 6.004 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002974/0.02733, allocations: 24.06 kB / 287.6 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.468e-05/0.02736, allocations: 19.98 kB / 287.6 MB, free: 5.961 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 (58): * Single equations (assignments): 56 * 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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001784/0.02754, allocations: 192.4 kB / 287.8 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.02764, allocations: 75.59 kB / 287.9 MB, free: 5.688 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.831e-05/0.02773, allocations: 56.91 kB / 287.9 MB, free: 5.625 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.02774, allocations: 11.94 kB / 287.9 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.494e-05/0.02775, allocations: 4 kB / 287.9 MB, free: 5.609 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.02776, allocations: 3.984 kB / 287.9 MB, free: 5.605 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001247/0.02901, allocations: 0.9268 MB / 288.9 MB, free: 4.621 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.02901, allocations: 0 / 288.9 MB, free: 4.621 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001412/0.02915, allocations: 63.84 kB / 288.9 MB, free: 4.559 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004798/0.02963, allocations: 223.1 kB / 289.1 MB, free: 4.332 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.02965, allocations: 12 kB / 289.2 MB, free: 4.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002228/0.03188, allocations: 4.567 MB / 293.7 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.03188, allocations: 0 / 293.7 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004819/0.03236, allocations: 0.5885 MB / 294.3 MB, free: 14.9 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.845e-05/0.03241, allocations: 39.7 kB / 294.3 MB, free: 14.86 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.788e-05/0.03244, allocations: 12 kB / 294.4 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.03256, allocations: 23.86 kB / 294.4 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.801e-05/0.03264, allocations: 44.41 kB / 294.4 MB, free: 14.78 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.03266, allocations: 15.98 kB / 294.4 MB, free: 14.77 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001425/0.0328, allocations: 267 kB / 294.7 MB, free: 14.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0328, allocations: 0 / 294.7 MB, free: 14.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000486/0.03328, allocations: 152 kB / 294.8 MB, free: 14.36 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 33 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000127/0.03341, allocations: 111.2 kB / 295 MB, free: 14.24 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006505/0.03406, allocations: 0.7183 MB / 295.7 MB, free: 13.48 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.03406, allocations: 0 / 295.7 MB, free: 13.48 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003621/0.03443, allocations: 0.5457 MB / 296.2 MB, free: 12.89 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002906/0.03472, allocations: 46.05 kB / 296.3 MB, free: 12.85 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.03579, allocations: 0.909 MB / 297.2 MB, free: 11.88 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001037/0.03589, allocations: 134.2 kB / 297.3 MB, free: 11.73 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.036, allocations: 40.27 kB / 297.3 MB, free: 11.7 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.03612, allocations: 114.2 kB / 297.5 MB, free: 11.58 MB / 282.7 MB Notification: Performance of SimCode: time 9.31e-07/0.03612, allocations: 0 / 297.5 MB, free: 11.58 MB / 282.7 MB Notification: Performance of Templates: time 0.008565/0.04469, allocations: 5.559 MB / 303 MB, free: 6.078 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.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.703454307280481]