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.001878/0.001878, allocations: 99.59 kB / 20.97 MB, free: 3.441 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.00206/0.00206, allocations: 157.7 kB / 24.27 MB, free: 144 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.548/1.548, allocations: 177.1 MB / 204.6 MB, free: 5.621 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 2.215e-06/2.215e-06, allocations: 3.938 kB / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.376e-05/3.598e-05, allocations: 2.312 kB / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.009143/0.009179, allocations: 2.803 MB / 275.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002879/0.01206, allocations: 0.7632 MB / 275.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002729/0.01233, allocations: 4 kB / 275.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004073/0.01274, allocations: 63.44 kB / 275.9 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006349/0.01337, allocations: 103.1 kB / 276 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005734/0.01395, allocations: 111.8 kB / 276.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008812/0.01483, allocations: 402.3 kB / 276.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003462/0.01517, allocations: 87.33 kB / 276.6 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000827/0.016, allocations: 243.4 kB / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004071/0.01641, allocations: 123.6 kB / 277 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.01653, allocations: 32 kB / 277 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001133/0.01664, allocations: 32 kB / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001367/0.01678, allocations: 79.72 kB / 277.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002502/0.01703, allocations: 127.7 kB / 277.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000821/0.01785, allocations: 406.6 kB / 277.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.01785, allocations: 0 / 277.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.01785, allocations: 0 / 277.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.01786, allocations: 0 / 277.7 MB, free: 12.48 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.002045/0.01991, allocations: 0.6828 MB / 278.3 MB, free: 11.76 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/0.01996, allocations: 15.95 kB / 278.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002061/0.02017, allocations: 68.69 kB / 278.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006051/0.02077, allocations: 228.8 kB / 278.6 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.027e-05/0.02082, allocations: 21.03 kB / 278.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.367e-05/0.02092, allocations: 32.38 kB / 278.7 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.02192, allocations: 270.6 kB / 279 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.02194, allocations: 192 / 279 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.005e-05/0.02199, allocations: 12.38 kB / 279 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/0.02201, allocations: 15.94 kB / 279 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.02306, allocations: 230.4 kB / 279.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003183/0.02625, allocations: 0.9995 MB / 280.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006567/0.0269, allocations: 143.1 kB / 280.4 MB, free: 9.633 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002804/0.02718, allocations: 63.58 kB / 280.4 MB, free: 9.566 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.499e-05/0.02723, allocations: 0 / 280.4 MB, free: 9.566 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.422e-05/0.02728, allocations: 45.31 kB / 280.5 MB, free: 9.512 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.643e-06/0.02728, allocations: 0 / 280.5 MB, free: 9.512 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.002582/0.02987, allocations: 0.5289 MB / 281 MB, free: 8.969 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.652e-05/0.02993, allocations: 55.41 kB / 281 MB, free: 8.902 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007516/0.03068, allocations: 368.1 kB / 281.4 MB, free: 8.523 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.03072, allocations: 25.7 kB / 281.4 MB, free: 8.492 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003418/0.03106, allocations: 286.8 kB / 281.7 MB, free: 8.207 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.03119, allocations: 83.31 kB / 281.8 MB, free: 8.125 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002131/0.0314, allocations: 83.31 kB / 281.9 MB, free: 8.035 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004225/0.03183, allocations: 0.5196 MB / 282.4 MB, free: 7.504 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003825/0.03221, allocations: 79.95 kB / 282.5 MB, free: 7.426 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005973/0.03281, allocations: 227.8 kB / 282.7 MB, free: 7.141 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.03381, allocations: 320.7 kB / 283 MB, free: 6.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.03381, allocations: 0 / 283 MB, free: 6.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001448/0.03526, allocations: 398.7 kB / 283.4 MB, free: 6.367 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.03528, allocations: 4 kB / 283.4 MB, free: 6.363 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.062e-05/0.0353, allocations: 8 kB / 283.4 MB, free: 6.355 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008674/0.03617, allocations: 87.7 kB / 283.5 MB, free: 6.262 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005068/0.03668, allocations: 71.89 kB / 283.6 MB, free: 6.191 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004386/0.04106, allocations: 3.641 MB / 287.2 MB, free: 2.305 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004298/0.04149, allocations: 15.98 kB / 287.2 MB, free: 2.289 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-05/0.04154, allocations: 16 kB / 287.2 MB, free: 2.273 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.0003264/0.04187, allocations: 200.5 kB / 287.4 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.04199, allocations: 31.81 kB / 287.5 MB, free: 2.035 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001336/0.04212, allocations: 34.2 kB / 287.5 MB, free: 2 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.04213, allocations: 4 kB / 287.5 MB, free: 1.996 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.04214, allocations: 0 / 287.5 MB, free: 1.996 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.04214, allocations: 0 / 287.5 MB, free: 1.996 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006778/0.04282, allocations: 276.5 kB / 287.8 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.04282, allocations: 0 / 287.8 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003546/0.04318, allocations: 31.92 kB / 287.8 MB, free: 1.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007755/0.04395, allocations: 95.3 kB / 287.9 MB, free: 1.559 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.603e-05/0.04398, allocations: 3.938 kB / 287.9 MB, free: 1.555 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00473/0.04871, allocations: 3.63 MB / 291.5 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.04872, allocations: 3.938 kB / 291.5 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.04993, allocations: 414.1 kB / 291.9 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.05004, allocations: 27.81 kB / 292 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.441e-05/0.05009, allocations: 7.969 kB / 292 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003046/0.0504, allocations: 12.06 kB / 292 MB, free: 13.2 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.05051, allocations: 23.95 kB / 292 MB, free: 13.17 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-05/0.05053, allocations: 4 kB / 292 MB, free: 13.17 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004217/0.05096, allocations: 233.1 kB / 292.2 MB, free: 12.94 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.05096, allocations: 0 / 292.2 MB, free: 12.94 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007887/0.05174, allocations: 76 kB / 292.3 MB, free: 12.87 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.0002144/0.05196, allocations: 103.2 kB / 292.4 MB, free: 12.76 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.05358, allocations: 0.5731 MB / 293 MB, free: 12.15 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.05359, allocations: 0 / 293 MB, free: 12.15 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000982/0.05457, allocations: 463.9 kB / 293.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005969/0.05516, allocations: 33.11 kB / 293.5 MB, free: 11.62 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/0.05699, allocations: 0.5517 MB / 294 MB, free: 11.05 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.05728, allocations: 176.8 kB / 294.2 MB, free: 10.86 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001985/0.05748, allocations: 26.27 kB / 294.2 MB, free: 10.84 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.05759, allocations: 28.5 kB / 294.2 MB, free: 10.81 MB / 282.7 MB Notification: Performance of SimCode: time 6.72e-07/0.05759, allocations: 0 / 294.2 MB, free: 10.81 MB / 282.7 MB Notification: Performance of Templates: time 0.01303/0.07062, allocations: 2.804 MB / 297 MB, free: 8.039 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","/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.638273483025841]