Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00107/0.00107, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001518/0.002588, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001144, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001482/0.002627, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9413/0.9413, allocations: 177.5 MB / 190 MB, free: 4.75 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08428/1.026, allocations: 53.87 MB / 243.9 MB, free: 14.81 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 245.2 MB, free: 13.53 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.965e-05/2.088e-05, allocations: 5.406 kB / 245.2 MB, free: 13.53 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003124/0.003145, allocations: 2.866 MB / 248.1 MB, free: 10.64 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.004266, allocations: 0.7979 MB / 248.9 MB, free: 9.836 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001141/0.00438, allocations: 4 kB / 248.9 MB, free: 9.832 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.004528, allocations: 75.36 kB / 248.9 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000175/0.004703, allocations: 99.17 kB / 249 MB, free: 9.66 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002091/0.004913, allocations: 111.7 kB / 249.2 MB, free: 9.551 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002854/0.005198, allocations: 394.4 kB / 249.5 MB, free: 9.164 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.005348, allocations: 93.95 kB / 249.6 MB, free: 9.074 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003254/0.005673, allocations: 275.9 kB / 249.9 MB, free: 8.805 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001466/0.00582, allocations: 127.6 kB / 250 MB, free: 8.68 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.772e-05/0.005857, allocations: 36 kB / 250.1 MB, free: 8.645 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.591e-05/0.005893, allocations: 32 kB / 250.1 MB, free: 8.613 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.999e-05/0.005933, allocations: 51.81 kB / 250.1 MB, free: 8.562 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.334e-05/0.006007, allocations: 107.8 kB / 250.2 MB, free: 8.457 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002413/0.006248, allocations: 231.1 kB / 250.5 MB, free: 8.23 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.15e-05/0.006259, allocations: 0 / 250.5 MB, free: 8.23 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.00626, allocations: 0 / 250.5 MB, free: 8.23 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.00627, allocations: 0 / 250.5 MB, free: 8.23 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0006983/0.006969, allocations: 0.6049 MB / 251.1 MB, free: 7.602 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.86e-05/0.006997, allocations: 12.03 kB / 251.1 MB, free: 7.59 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.486e-05/0.007062, allocations: 48.89 kB / 251.1 MB, free: 7.543 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000202/0.007264, allocations: 186.1 kB / 251.3 MB, free: 7.332 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.007291, allocations: 29.03 kB / 251.3 MB, free: 7.305 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.692e-05/0.007328, allocations: 32.33 kB / 251.4 MB, free: 7.273 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000255/0.007583, allocations: 215.3 kB / 251.6 MB, free: 7.051 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.007593, allocations: 192 / 251.6 MB, free: 7.051 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.007609, allocations: 16.38 kB / 251.6 MB, free: 7.035 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.007619, allocations: 11.94 kB / 251.6 MB, free: 7.023 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001123/0.007731, allocations: 84.53 kB / 251.7 MB, free: 6.945 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008643/0.008595, allocations: 0.7561 MB / 252.5 MB, free: 6.137 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.00873, allocations: 86.45 kB / 252.5 MB, free: 6.043 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.398e-05/0.008764, allocations: 20.86 kB / 252.6 MB, free: 6.02 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.008786, allocations: 8 kB / 252.6 MB, free: 6.012 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.008806, allocations: 34.55 kB / 252.6 MB, free: 5.969 MB / 250.7 MB Notification: Performance of pre-optimization done (n=17): time 1.021e-06/0.008807, allocations: 0 / 252.6 MB, free: 5.969 MB / 250.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007429/0.00955, allocations: 409.3 kB / 253 MB, free: 5.559 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.646e-05/0.009577, allocations: 51.41 kB / 253 MB, free: 5.496 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.009727, allocations: 252.8 kB / 253.3 MB, free: 5.238 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.009742, allocations: 25.7 kB / 253.3 MB, free: 5.207 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.82e-05/0.00983, allocations: 231.7 kB / 253.5 MB, free: 4.973 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.8e-05/0.009868, allocations: 79.33 kB / 253.6 MB, free: 4.895 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.057e-05/0.009929, allocations: 65.66 kB / 253.7 MB, free: 4.824 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.768e-05/0.01001, allocations: 338.8 kB / 254 MB, free: 4.484 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.918e-05/0.01005, allocations: 23.98 kB / 254 MB, free: 4.461 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.47e-05/0.01013, allocations: 128.2 kB / 254.2 MB, free: 4.289 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.01028, allocations: 197.8 kB / 254.4 MB, free: 4.055 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.01028, allocations: 0 / 254.4 MB, free: 4.055 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002266/0.01051, allocations: 236.5 kB / 254.6 MB, free: 3.812 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.01052, allocations: 4 kB / 254.6 MB, free: 3.809 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.01052, allocations: 4 kB / 254.6 MB, free: 3.805 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002514/0.01078, allocations: 81.97 kB / 254.7 MB, free: 3.719 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.01093, allocations: 75.89 kB / 254.8 MB, free: 3.645 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001091/0.01202, allocations: 2.366 MB / 257.1 MB, free: 1.102 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.01212, allocations: 19.98 kB / 257.1 MB, free: 1.082 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.01214, allocations: 12 kB / 257.2 MB, free: 1.07 MB / 250.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 7.83e-05/0.01221, allocations: 133.6 kB / 257.3 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.834e-05/0.01224, allocations: 19.98 kB / 257.3 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.3e-05/0.01227, allocations: 34.27 kB / 257.3 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-06/0.01228, allocations: 4 kB / 257.3 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.01228, allocations: 8.031 kB / 257.3 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.01229, allocations: 3.984 kB / 257.4 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.01243, allocations: 153.7 kB / 257.5 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.01243, allocations: 0 / 257.5 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.281e-05/0.01251, allocations: 35.98 kB / 257.5 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.844e-05/0.01253, allocations: 23.8 kB / 257.6 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001764/0.01271, allocations: 73.56 kB / 257.6 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.288e-06/0.01272, allocations: 4 kB / 257.6 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009629/0.01368, allocations: 2.384 MB / 260 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.01368, allocations: 0 / 260 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001777/0.01386, allocations: 240.4 kB / 260.3 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.626e-05/0.01387, allocations: 7.938 kB / 260.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.38e-05/0.01395, allocations: 11.98 kB / 260.3 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.177e-05/0.01399, allocations: 15.97 kB / 260.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.014, allocations: 11.98 kB / 260.3 MB, free: 13.7 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.228e-05/0.01406, allocations: 82.77 kB / 260.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01406, allocations: 0 / 260.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002213/0.01428, allocations: 76.03 kB / 260.5 MB, free: 13.54 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 7.889e-05/0.01436, allocations: 88.41 kB / 260.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003074/0.01467, allocations: 365.9 kB / 260.9 MB, free: 13.06 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/0.01468, allocations: 12.19 kB / 260.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001728/0.01485, allocations: 305.9 kB / 261.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.01512, allocations: 237.3 kB / 261.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.01662, allocations: 0.5359 MB / 262 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.818e-05/0.01668, allocations: 108.3 kB / 262.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.923e-05/0.01676, allocations: 26.97 kB / 262.1 MB, free: 11.74 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.607e-05/0.01686, allocations: 87.36 kB / 262.2 MB, free: 11.65 MB / 266.7 MB Notification: Performance of SimCode: time 7.41e-07/0.01686, allocations: 0 / 262.2 MB, free: 11.65 MB / 266.7 MB Notification: Performance of Templates: time 0.005156/0.02201, allocations: 3.245 MB / 265.4 MB, free: 8.441 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5840663304552436]