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.0008823/0.0008823, allocations: 75.77 kB / 21.18 MB, free: 3.379 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.0009747/0.0009747, allocations: 161 kB / 24.56 MB, free: 8 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 0.9799/0.9799, allocations: 177.1 MB / 205 MB, free: 5.613 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 2.155e-06/2.155e-06, allocations: 0 / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.131e-05/3.346e-05, allocations: 2.312 kB / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004929/0.004962, allocations: 2.833 MB / 275.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.006736, allocations: 0.7709 MB / 276.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002484/0.006985, allocations: 8 kB / 276.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002963/0.007281, allocations: 67.42 kB / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003531/0.007634, allocations: 99.19 kB / 276.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003554/0.007989, allocations: 119.7 kB / 276.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005544/0.008544, allocations: 401.9 kB / 277.3 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002552/0.008799, allocations: 95.31 kB / 277.4 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005228/0.009322, allocations: 235.4 kB / 277.6 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002314/0.009553, allocations: 127.6 kB / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001732/0.009726, allocations: 32 kB / 277.7 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.42e-05/0.009811, allocations: 32 kB / 277.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.272e-05/0.009873, allocations: 79.73 kB / 277.8 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.01, allocations: 119.7 kB / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003839/0.01038, allocations: 251 kB / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.01039, allocations: 4 kB / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.01039, allocations: 3.938 kB / 278.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.006e-06/0.0104, allocations: 0 / 278.2 MB, free: 12.26 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.0009222/0.01132, allocations: 0.6674 MB / 278.9 MB, free: 11.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.01137, allocations: 8.031 kB / 278.9 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.201e-05/0.01146, allocations: 72.64 kB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.01173, allocations: 220.9 kB / 279.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.157e-05/0.01176, allocations: 25.03 kB / 279.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.773e-05/0.01181, allocations: 28.38 kB / 279.2 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003695/0.01218, allocations: 227.3 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.01219, allocations: 192 / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.01222, allocations: 16.38 kB / 279.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.01223, allocations: 11.94 kB / 279.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002036/0.01243, allocations: 127.8 kB / 279.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.01358, allocations: 0.9096 MB / 280.5 MB, free: 9.816 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002084/0.01379, allocations: 99.05 kB / 280.6 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.247e-05/0.01385, allocations: 39.58 kB / 280.7 MB, free: 9.664 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.248e-05/0.01389, allocations: 8 kB / 280.7 MB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.01391, allocations: 37.39 kB / 280.7 MB, free: 9.609 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 4.348e-06/0.01391, allocations: 3.984 kB / 280.7 MB, free: 9.605 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009522/0.01487, allocations: 417.7 kB / 281.1 MB, free: 9.184 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.01491, allocations: 55.41 kB / 281.2 MB, free: 9.117 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/0.01514, allocations: 320.1 kB / 281.5 MB, free: 8.789 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.01517, allocations: 29.7 kB / 281.5 MB, free: 8.754 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.01531, allocations: 286.8 kB / 281.8 MB, free: 8.469 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.022e-05/0.01537, allocations: 71.39 kB / 281.9 MB, free: 8.398 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.904e-05/0.01545, allocations: 67.31 kB / 281.9 MB, free: 8.324 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.01559, allocations: 0.5117 MB / 282.4 MB, free: 7.801 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.302e-05/0.01567, allocations: 39.91 kB / 282.5 MB, free: 7.762 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.01583, allocations: 183.8 kB / 282.6 MB, free: 7.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002616/0.01609, allocations: 236.8 kB / 282.9 MB, free: 7.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.01609, allocations: 0 / 282.9 MB, free: 7.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003912/0.01648, allocations: 310.7 kB / 283.2 MB, free: 6.914 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.01651, allocations: 6.344 kB / 283.2 MB, free: 6.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.01652, allocations: 7.938 kB / 283.2 MB, free: 6.902 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003439/0.01686, allocations: 79.7 kB / 283.3 MB, free: 6.816 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.01703, allocations: 63.91 kB / 283.3 MB, free: 6.754 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001788/0.01882, allocations: 3.535 MB / 286.9 MB, free: 2.973 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.01893, allocations: 16 kB / 286.9 MB, free: 2.957 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.62e-05/0.01895, allocations: 12 kB / 286.9 MB, free: 2.945 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.0001284/0.01908, allocations: 192.4 kB / 287.1 MB, free: 2.746 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.869e-05/0.01912, allocations: 35.88 kB / 287.1 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.039e-05/0.01917, allocations: 34.2 kB / 287.2 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.01917, allocations: 4 kB / 287.2 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.01918, allocations: 0 / 287.2 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.01918, allocations: 0 / 287.2 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.01939, allocations: 224.5 kB / 287.4 MB, free: 2.418 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.0194, allocations: 7.984 kB / 287.4 MB, free: 2.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.589e-05/0.01948, allocations: 31.98 kB / 287.4 MB, free: 2.379 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002204/0.0197, allocations: 79.44 kB / 287.5 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.01972, allocations: 3.938 kB / 287.5 MB, free: 2.289 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001674/0.02139, allocations: 3.524 MB / 291 MB, free: 14.52 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.02139, allocations: 3.938 kB / 291 MB, free: 14.51 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002861/0.02168, allocations: 342.3 kB / 291.4 MB, free: 14.15 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.324e-05/0.0217, allocations: 23.81 kB / 291.4 MB, free: 14.13 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/0.02172, allocations: 4 kB / 291.4 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.274e-05/0.0218, allocations: 15.98 kB / 291.4 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.67e-05/0.02187, allocations: 19.91 kB / 291.4 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.02188, allocations: 4 kB / 291.4 MB, free: 14.09 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001369/0.02201, allocations: 217.1 kB / 291.6 MB, free: 13.88 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02201, allocations: 0 / 291.6 MB, free: 13.88 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002704/0.02229, allocations: 72 kB / 291.7 MB, free: 13.8 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.0001073/0.02239, allocations: 95.25 kB / 291.8 MB, free: 13.7 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004918/0.02288, allocations: 0.4951 MB / 292.3 MB, free: 13.17 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.02289, allocations: 0 / 292.3 MB, free: 13.17 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002262/0.02311, allocations: 419.2 kB / 292.7 MB, free: 12.72 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002611/0.02337, allocations: 28.5 kB / 292.7 MB, free: 12.7 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.02441, allocations: 0.5298 MB / 293.3 MB, free: 12.14 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.523e-05/0.02448, allocations: 92.25 kB / 293.4 MB, free: 12.03 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.649e-05/0.02455, allocations: 30.31 kB / 293.4 MB, free: 12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.895e-05/0.02461, allocations: 20.5 kB / 293.4 MB, free: 11.98 MB / 282.7 MB Notification: Performance of SimCode: time 9.32e-07/0.02461, allocations: 4 kB / 293.4 MB, free: 11.97 MB / 282.7 MB Notification: Performance of Templates: time 0.005658/0.03027, allocations: 2.823 MB / 296.2 MB, free: 9.191 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: 3.076470516156405]