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.001419/0.001419, allocations: 78.66 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.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.001685/0.001685, allocations: 165.8 kB / 24.82 MB, free: 9.266 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.9742/0.9742, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.492e-06/1.492e-06, allocations: 0 / 273.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.727e-05/1.876e-05, allocations: 2.312 kB / 273.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003085/0.003104, allocations: 2.787 MB / 276.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0012/0.004304, allocations: 0.7748 MB / 277 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001707/0.004474, allocations: 4 kB / 277 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001992/0.004674, allocations: 63.42 kB / 277 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002499/0.004923, allocations: 111 kB / 277.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002418/0.005165, allocations: 107.8 kB / 277.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002996/0.005465, allocations: 402.3 kB / 277.6 MB, free: 13 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.005617, allocations: 91.33 kB / 277.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003312/0.005948, allocations: 235.5 kB / 278 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.006078, allocations: 123.6 kB / 278.1 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.006115, allocations: 36 kB / 278.1 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.631e-05/0.006152, allocations: 32 kB / 278.1 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.205e-05/0.006194, allocations: 87.59 kB / 278.2 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.766e-05/0.006271, allocations: 115.7 kB / 278.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002402/0.006512, allocations: 259 kB / 278.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.006514, allocations: 0 / 278.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.006514, allocations: 0 / 278.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.006519, allocations: 0 / 278.6 MB, free: 12.04 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.0006472/0.007166, allocations: 0.6751 MB / 279.3 MB, free: 11.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.007197, allocations: 8.031 kB / 279.3 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.439e-05/0.007261, allocations: 64.7 kB / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.007462, allocations: 216.9 kB / 279.6 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.007486, allocations: 25.03 kB / 279.6 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.277e-05/0.007519, allocations: 28.38 kB / 279.6 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002455/0.007765, allocations: 215.3 kB / 279.8 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.575e-06/0.007772, allocations: 192 / 279.8 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.007789, allocations: 12.38 kB / 279.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.007796, allocations: 15.88 kB / 279.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001163/0.007912, allocations: 100.5 kB / 279.9 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008907/0.008803, allocations: 0.9211 MB / 280.9 MB, free: 9.621 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001314/0.008934, allocations: 87.11 kB / 281 MB, free: 9.523 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.704e-05/0.008971, allocations: 35.58 kB / 281 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.008988, allocations: 4 kB / 281 MB, free: 9.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.772e-05/0.009005, allocations: 41.31 kB / 281 MB, free: 9.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.192e-06/0.009007, allocations: 0 / 281 MB, free: 9.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006656/0.009672, allocations: 370.5 kB / 281.4 MB, free: 9.059 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.369e-05/0.009696, allocations: 59.34 kB / 281.4 MB, free: 8.988 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.009857, allocations: 312 kB / 281.8 MB, free: 8.668 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.009872, allocations: 33.7 kB / 281.8 MB, free: 8.629 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.009977, allocations: 274.8 kB / 282.1 MB, free: 8.355 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.77e-05/0.01001, allocations: 79.31 kB / 282.1 MB, free: 8.277 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.709e-05/0.01008, allocations: 71.28 kB / 282.2 MB, free: 8.199 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.01021, allocations: 0.5156 MB / 282.7 MB, free: 7.672 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.351e-05/0.01026, allocations: 31.97 kB / 282.7 MB, free: 7.641 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.01037, allocations: 167.8 kB / 282.9 MB, free: 7.414 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001671/0.01053, allocations: 216.8 kB / 283.1 MB, free: 7.145 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.01054, allocations: 4 kB / 283.1 MB, free: 7.141 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002908/0.01083, allocations: 287.1 kB / 283.4 MB, free: 6.848 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.01084, allocations: 6.344 kB / 283.4 MB, free: 6.844 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.01085, allocations: 4 kB / 283.4 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002394/0.01109, allocations: 75.3 kB / 283.5 MB, free: 6.758 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.01124, allocations: 75.84 kB / 283.6 MB, free: 6.684 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001354/0.01259, allocations: 3.486 MB / 287.1 MB, free: 2.969 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.0127, allocations: 19.98 kB / 287.1 MB, free: 2.949 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.01272, allocations: 12.06 kB / 287.1 MB, free: 2.938 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 9.63e-05/0.01281, allocations: 184.4 kB / 287.3 MB, free: 2.746 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.606e-05/0.01285, allocations: 31.81 kB / 287.3 MB, free: 2.715 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.263e-05/0.01288, allocations: 30.27 kB / 287.3 MB, free: 2.684 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.01288, allocations: 4 kB / 287.3 MB, free: 2.68 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.01289, allocations: 3.938 kB / 287.3 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.01289, allocations: 3.984 kB / 287.3 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001633/0.01306, allocations: 185.1 kB / 287.5 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.01306, allocations: 8 kB / 287.5 MB, free: 2.457 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.709e-05/0.01314, allocations: 31.92 kB / 287.6 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001856/0.01332, allocations: 71.3 kB / 287.6 MB, free: 2.348 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.01333, allocations: 4 kB / 287.6 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001313/0.01464, allocations: 3.49 MB / 291.1 MB, free: 14.62 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01464, allocations: 0 / 291.1 MB, free: 14.62 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000234/0.01488, allocations: 325.9 kB / 291.4 MB, free: 14.28 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.368e-05/0.0149, allocations: 31.86 kB / 291.5 MB, free: 14.25 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.01492, allocations: 4 kB / 291.5 MB, free: 14.24 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.079e-05/0.015, allocations: 15.88 kB / 291.5 MB, free: 14.23 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.68e-05/0.01504, allocations: 23.95 kB / 291.5 MB, free: 14.2 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.01505, allocations: 0 / 291.5 MB, free: 14.2 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.659e-05/0.01515, allocations: 201.1 kB / 291.7 MB, free: 14.01 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01515, allocations: 0 / 291.7 MB, free: 14.01 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002602/0.01541, allocations: 76 kB / 291.8 MB, free: 13.93 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 8.229e-05/0.01549, allocations: 107.2 kB / 291.9 MB, free: 13.82 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00035/0.01584, allocations: 482.9 kB / 292.4 MB, free: 13.31 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.01584, allocations: 0 / 292.4 MB, free: 13.31 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000193/0.01603, allocations: 416 kB / 292.8 MB, free: 12.87 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/0.01625, allocations: 35.62 kB / 292.8 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007247/0.01698, allocations: 0.5143 MB / 293.3 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.381e-05/0.01703, allocations: 92.31 kB / 293.4 MB, free: 12.18 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001016/0.01713, allocations: 30.27 kB / 293.4 MB, free: 12.15 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.941e-05/0.01723, allocations: 102.2 kB / 293.5 MB, free: 12.05 MB / 282.7 MB Notification: Performance of SimCode: time 3.9e-07/0.01723, allocations: 0 / 293.5 MB, free: 12.05 MB / 282.7 MB Notification: Performance of Templates: time 0.004954/0.02219, allocations: 3.009 MB / 296.5 MB, free: 9.074 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.678726211655885]