Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.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.0008387/0.0008387, allocations: 77.97 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.0008823/0.0008823, allocations: 168.8 kB / 24.82 MB, free: 9.258 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.9674/0.9674, allocations: 177.1 MB / 205.3 MB, free: 5.516 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.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.666e-05/1.806e-05, allocations: 5.266 kB / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004003/0.004021, allocations: 4.875 MB / 278.3 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002722/0.006744, allocations: 2.062 MB / 280.3 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000204/0.006948, allocations: 16 kB / 280.4 MB, free: 10.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001453/0.008401, allocations: 1.439 MB / 281.8 MB, free: 8.863 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005862/0.008987, allocations: 429.1 kB / 282.2 MB, free: 8.441 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00109/0.01008, allocations: 1.139 MB / 283.4 MB, free: 7.301 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005167/0.01059, allocations: 0.7625 MB / 284.1 MB, free: 6.531 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005517/0.01115, allocations: 0.5712 MB / 284.7 MB, free: 5.961 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003677/0.01151, allocations: 486.9 kB / 285.2 MB, free: 5.484 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002752/0.01179, allocations: 335.1 kB / 285.5 MB, free: 5.156 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.535e-05/0.01185, allocations: 68 kB / 285.6 MB, free: 5.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004494/0.0123, allocations: 395.3 kB / 285.9 MB, free: 4.703 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.081e-05/0.01238, allocations: 171.3 kB / 286.1 MB, free: 4.535 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.01253, allocations: 259.3 kB / 286.4 MB, free: 4.281 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009424/0.01347, allocations: 0.8993 MB / 287.3 MB, free: 3.379 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.01348, allocations: 0 / 287.3 MB, free: 3.379 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.01348, allocations: 0 / 287.3 MB, free: 3.379 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.01348, allocations: 0 / 287.3 MB, free: 3.379 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.002178/0.01566, allocations: 1.513 MB / 288.8 MB, free: 1.824 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.01569, allocations: 12.02 kB / 288.8 MB, free: 1.812 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001308/0.017, allocations: 499.8 kB / 289.3 MB, free: 1.324 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.01713, allocations: 204.3 kB / 289.5 MB, free: 1.094 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.116e-05/0.01717, allocations: 58.38 kB / 289.5 MB, free: 1.039 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.254e-05/0.01725, allocations: 84.38 kB / 289.6 MB, free: 0.957 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006653/0.01792, allocations: 0.6497 MB / 290.3 MB, free: 288 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.01794, allocations: 4.188 kB / 290.3 MB, free: 284 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.663e-05/0.01799, allocations: 32.38 kB / 290.3 MB, free: 252 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.018, allocations: 23.94 kB / 290.3 MB, free: 228 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1038/0.1218, allocations: 350.6 kB / 290.7 MB, free: 18.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002819/0.1246, allocations: 2.315 MB / 293 MB, free: 18.19 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004909/0.1251, allocations: 395.4 kB / 293.4 MB, free: 18.14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.1253, allocations: 110.9 kB / 293.5 MB, free: 18.13 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.531e-05/0.1253, allocations: 35.5 kB / 293.5 MB, free: 18.13 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.717e-05/0.1253, allocations: 43.3 kB / 293.6 MB, free: 18.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 2.014e-06/0.1253, allocations: 0 / 293.6 MB, free: 18.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002036/0.1274, allocations: 1.164 MB / 294.7 MB, free: 17.81 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/0.1274, allocations: 88.27 kB / 294.8 MB, free: 17.72 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002338/0.1276, allocations: 354.1 kB / 295.1 MB, free: 17.54 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.734e-05/0.1277, allocations: 34.77 kB / 295.2 MB, free: 17.5 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.1278, allocations: 430.5 kB / 295.6 MB, free: 17.24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.1279, allocations: 231.3 kB / 295.8 MB, free: 17.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.1281, allocations: 156.2 kB / 296 MB, free: 17.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.579e-05/0.1282, allocations: 0.5272 MB / 296.5 MB, free: 16.61 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.1283, allocations: 90.48 kB / 296.6 MB, free: 16.6 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.1286, allocations: 471.3 kB / 297.1 MB, free: 16.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004351/0.129, allocations: 0.5807 MB / 297.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.129, allocations: 6.141 kB / 297.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0007104/0.1297, allocations: 0.5922 MB / 298.2 MB, free: 15.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.1297, allocations: 13.17 kB / 298.2 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.1297, allocations: 7.25 kB / 298.3 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002565/0.13, allocations: 89.62 kB / 298.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003999/0.1304, allocations: 183.1 kB / 298.5 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001027/0.1314, allocations: 3.509 MB / 302 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002867/0.1317, allocations: 42.22 kB / 302.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-05/0.1317, allocations: 31.67 kB / 302.1 MB, free: 12.23 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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.0001332/0.1319, allocations: 208 kB / 302.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.437e-05/0.132, allocations: 64.52 kB / 302.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005697/0.1325, allocations: 446.6 kB / 302.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1325, allocations: 5.656 kB / 302.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1325, allocations: 1.797 kB / 302.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.1325, allocations: 3.719 kB / 302.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009937/0.1335, allocations: 0.897 MB / 303.7 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1335, allocations: 0 / 303.7 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002951/0.1338, allocations: 115.7 kB / 303.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000212/0.134, allocations: 80.48 kB / 303.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.1341, allocations: 14.38 kB / 303.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008796/0.1349, allocations: 3.484 MB / 307.4 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.135, allocations: 1.312 kB / 307.4 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006535/0.1356, allocations: 0.6404 MB / 308 MB, free: 7.957 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.1357, allocations: 81.91 kB / 308.1 MB, free: 7.938 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.583e-05/0.1358, allocations: 25.94 kB / 308.2 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.1359, allocations: 31.39 kB / 308.2 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.476e-05/0.136, allocations: 47 kB / 308.2 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-05/0.136, allocations: 14.89 kB / 308.2 MB, free: 7.926 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001009/0.1361, allocations: 213.5 kB / 308.5 MB, free: 7.797 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1361, allocations: 4.031 kB / 308.5 MB, free: 7.793 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004927/0.1366, allocations: 178 kB / 308.6 MB, free: 7.789 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_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 (58): * Single equations (assignments): 56 * 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.0001852/0.1368, allocations: 164.1 kB / 308.8 MB, free: 7.688 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005897/0.1374, allocations: 0.7093 MB / 309.5 MB, free: 7.305 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1374, allocations: 192 / 309.5 MB, free: 7.305 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002722/0.1377, allocations: 0.525 MB / 310 MB, free: 6.926 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002517/0.1379, allocations: 53.81 kB / 310.1 MB, free: 6.898 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.1394, allocations: 1.081 MB / 311.2 MB, free: 6.32 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.64e-05/0.1395, allocations: 140.8 kB / 311.3 MB, free: 6.238 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002132/0.1397, allocations: 82.97 kB / 311.4 MB, free: 6.207 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.1399, allocations: 151.4 kB / 311.5 MB, free: 6.137 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.1399, allocations: 0 / 311.5 MB, free: 6.137 MB / 266.7 MB Notification: Performance of Templates: time 0.008743/0.1487, allocations: 7.088 MB / 318.6 MB, free: 2.973 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/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.681202221661806]