Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.0009216/0.0009216, allocations: 80.34 kB / 22.21 MB, free: 2.281 MB / 18.57 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.0008901/0.0008901, allocations: 159.7 kB / 25.61 MB, free: 8.59 MB / 18.57 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.9377/0.9377, allocations: 177 MB / 205.9 MB, free: 4.449 MB / 186.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.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 274.1 MB, free: 4.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.44e-05/1.578e-05, allocations: 2.312 kB / 274.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.002904/0.00292, allocations: 2.821 MB / 276.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.004083, allocations: 1.164 MB / 278.1 MB, free: 308 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.004191, allocations: 8 kB / 278.1 MB, free: 300 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000805/0.004996, allocations: 0.6414 MB / 278.8 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001883/0.005185, allocations: 142.9 kB / 278.9 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006614/0.005846, allocations: 0.6108 MB / 279.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002599/0.006106, allocations: 314.3 kB / 279.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002754/0.006381, allocations: 231.2 kB / 280 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.006554, allocations: 199.5 kB / 280.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001329/0.006686, allocations: 131.7 kB / 280.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.816e-05/0.006715, allocations: 24 kB / 280.4 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002084/0.006923, allocations: 183.6 kB / 280.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.575e-05/0.006959, allocations: 59.77 kB / 280.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.524e-05/0.007024, allocations: 99.75 kB / 280.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003519/0.007376, allocations: 382.7 kB / 281.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.007378, allocations: 0 / 281.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.007379, allocations: 3.938 kB / 281.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.007383, allocations: 0 / 281.1 MB, free: 13.3 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.0009242/0.008307, allocations: 0.7689 MB / 281.9 MB, free: 12.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.008337, allocations: 8.031 kB / 281.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004516/0.008788, allocations: 172.5 kB / 282 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000188/0.008976, allocations: 204.2 kB / 282.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.008995, allocations: 28.97 kB / 282.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.372e-05/0.009029, allocations: 32.38 kB / 282.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004988/0.009527, allocations: 243.2 kB / 282.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.009541, allocations: 4.172 kB / 282.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.00956, allocations: 19.92 kB / 282.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.009568, allocations: 8 kB / 282.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001282/0.009696, allocations: 112.4 kB / 282.7 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000984/0.01068, allocations: 1.085 MB / 283.8 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000247/0.01093, allocations: 209.8 kB / 284 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.33e-05/0.01098, allocations: 59.66 kB / 284 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.555e-05/0.01105, allocations: 15.98 kB / 284 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.01107, allocations: 37.39 kB / 284.1 MB, free: 10.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.342e-06/0.01107, allocations: 0 / 284.1 MB, free: 10.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.000573/0.01164, allocations: 339.9 kB / 284.4 MB, free: 9.812 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.179e-05/0.01166, allocations: 55.34 kB / 284.5 MB, free: 9.746 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.68e-05/0.01176, allocations: 219.2 kB / 284.7 MB, free: 9.516 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.01177, allocations: 29.7 kB / 284.7 MB, free: 9.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.921e-05/0.01185, allocations: 235 kB / 284.9 MB, free: 9.246 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.088e-05/0.01189, allocations: 83.28 kB / 285 MB, free: 9.164 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.835e-05/0.01195, allocations: 59.62 kB / 285.1 MB, free: 9.094 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.01206, allocations: 0.5001 MB / 285.6 MB, free: 8.582 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.674e-05/0.0121, allocations: 28.55 kB / 285.6 MB, free: 8.555 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.139e-05/0.01218, allocations: 122.8 kB / 285.7 MB, free: 8.398 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001291/0.01231, allocations: 172.1 kB / 285.9 MB, free: 8.199 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.01231, allocations: 0 / 285.9 MB, free: 8.199 MB / 266.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.00027/0.01258, allocations: 255.3 kB / 286.1 MB, free: 7.941 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.01259, allocations: 11.98 kB / 286.2 MB, free: 7.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.0126, allocations: 0 / 286.2 MB, free: 7.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000196/0.01279, allocations: 79.61 kB / 286.2 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.394e-05/0.01288, allocations: 43.97 kB / 286.3 MB, free: 7.805 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.01407, allocations: 2.279 MB / 288.6 MB, free: 5.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.217e-05/0.01415, allocations: 31.86 kB / 288.6 MB, free: 5.383 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.01416, allocations: 8 kB / 288.6 MB, free: 5.375 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001004/0.01426, allocations: 176.4 kB / 288.8 MB, free: 5.191 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.32e-05/0.01429, allocations: 19.91 kB / 288.8 MB, free: 5.172 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002772/0.01457, allocations: 213.3 kB / 289 MB, free: 4.957 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.01457, allocations: 4 kB / 289 MB, free: 4.953 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.01458, allocations: 4 kB / 289 MB, free: 4.949 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.01458, allocations: 3.984 kB / 289 MB, free: 4.945 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007982/0.01538, allocations: 0.5325 MB / 289.5 MB, free: 4.371 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.01538, allocations: 4 kB / 289.5 MB, free: 4.367 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.34e-05/0.01544, allocations: 27.92 kB / 289.6 MB, free: 4.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001561/0.0156, allocations: 79.56 kB / 289.6 MB, free: 4.258 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.01561, allocations: 3.984 kB / 289.6 MB, free: 4.254 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/0.01668, allocations: 2.271 MB / 291.9 MB, free: 1.871 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.01668, allocations: 0 / 291.9 MB, free: 1.871 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002909/0.01697, allocations: 392.5 kB / 292.3 MB, free: 1.465 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.789e-05/0.01701, allocations: 31.83 kB / 292.3 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.01702, allocations: 7.984 kB / 292.3 MB, free: 1.426 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.844e-05/0.01708, allocations: 8.062 kB / 292.3 MB, free: 1.418 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.44e-05/0.0171, allocations: 19.83 kB / 292.4 MB, free: 1.398 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.742e-06/0.01711, allocations: 4 kB / 292.4 MB, free: 1.395 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.276e-05/0.01716, allocations: 157.4 kB / 292.5 MB, free: 1.242 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01716, allocations: 0 / 292.5 MB, free: 1.242 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002935/0.01746, allocations: 99.78 kB / 292.6 MB, free: 1.145 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001614/0.01762, allocations: 127.1 kB / 292.7 MB, free: 1.012 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003274/0.01795, allocations: 355 kB / 293.1 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.01795, allocations: 0 / 293.1 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001657/0.01811, allocations: 290.1 kB / 293.4 MB, free: 348 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001959/0.01831, allocations: 20 kB / 293.4 MB, free: 328 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007332/0.01904, allocations: 0.5026 MB / 293.9 MB, free: 15.78 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.453e-05/0.01909, allocations: 84.31 kB / 294 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.514e-05/0.01914, allocations: 21.95 kB / 294 MB, free: 15.66 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.347e-05/0.0192, allocations: 98.19 kB / 294.1 MB, free: 15.56 MB / 282.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01921, allocations: 0 / 294.1 MB, free: 15.56 MB / 282.7 MB Notification: Performance of Templates: time 0.004867/0.02407, allocations: 3.024 MB / 297.1 MB, free: 12.58 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.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.7286431873217225]