Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009499/0.0009499, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8912/0.8912, allocations: 173.3 MB / 201.1 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.791e-05/1.915e-05, allocations: 5.969 kB / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004604/0.004623, allocations: 5.005 MB / 273 MB, free: 1.398 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002466/0.007089, allocations: 2.043 MB / 275.1 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002112/0.0073, allocations: 16 kB / 275.1 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001657/0.008957, allocations: 1.489 MB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007681/0.009725, allocations: 0.5668 MB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001113/0.01084, allocations: 1.022 MB / 278.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006458/0.01148, allocations: 0.7781 MB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007625/0.01225, allocations: 0.5752 MB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004105/0.01266, allocations: 487 kB / 280 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002848/0.01294, allocations: 335.1 kB / 280.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.436e-05/0.01301, allocations: 72 kB / 280.4 MB, free: 10 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005083/0.01351, allocations: 387.2 kB / 280.8 MB, free: 9.621 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.154e-05/0.0136, allocations: 167.3 kB / 280.9 MB, free: 9.457 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.01376, allocations: 263.3 kB / 281.2 MB, free: 9.199 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007191/0.01448, allocations: 0.8798 MB / 282.1 MB, free: 8.316 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.01448, allocations: 0 / 282.1 MB, free: 8.316 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.01448, allocations: 0 / 282.1 MB, free: 8.316 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.01448, allocations: 4 kB / 282.1 MB, free: 8.312 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.002477/0.01696, allocations: 1.509 MB / 283.6 MB, free: 6.762 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.017, allocations: 8.922 kB / 283.6 MB, free: 6.754 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001354/0.01836, allocations: 0.5076 MB / 284.1 MB, free: 6.246 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.01849, allocations: 207.6 kB / 284.3 MB, free: 6.016 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.155e-05/0.01854, allocations: 62.38 kB / 284.4 MB, free: 5.957 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.625e-05/0.01862, allocations: 88.33 kB / 284.4 MB, free: 5.871 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008432/0.01946, allocations: 0.7162 MB / 285.2 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.01948, allocations: 192 / 285.2 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.112e-05/0.01953, allocations: 43.92 kB / 285.2 MB, free: 5.086 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.01955, allocations: 20 kB / 285.2 MB, free: 5.066 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006261/0.02017, allocations: 435.7 kB / 285.6 MB, free: 4.645 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002287/0.02246, allocations: 2.295 MB / 287.9 MB, free: 2.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005066/0.02297, allocations: 422.9 kB / 288.3 MB, free: 1.801 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.02313, allocations: 129.1 kB / 288.5 MB, free: 1.672 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.163e-05/0.02319, allocations: 20.48 kB / 288.5 MB, free: 1.652 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.02321, allocations: 45.89 kB / 288.5 MB, free: 1.598 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.513e-06/0.02321, allocations: 0 / 288.5 MB, free: 1.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002417/0.02563, allocations: 1.342 MB / 289.9 MB, free: 212 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.384e-05/0.02566, allocations: 89.55 kB / 290 MB, free: 104 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1037/0.1293, allocations: 363.4 kB / 290.3 MB, free: 22.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.1294, allocations: 35.27 kB / 290.4 MB, free: 22.11 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00018/0.1296, allocations: 422.3 kB / 290.8 MB, free: 21.93 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.1297, allocations: 225.2 kB / 291 MB, free: 21.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.1299, allocations: 159.9 kB / 291.1 MB, free: 21.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.501e-05/0.13, allocations: 0.5226 MB / 291.7 MB, free: 21.3 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002337/0.1302, allocations: 121 kB / 291.8 MB, free: 21.29 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003072/0.1305, allocations: 495.9 kB / 292.3 MB, free: 20.85 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005317/0.131, allocations: 0.6239 MB / 292.9 MB, free: 20.45 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.131, allocations: 2.281 kB / 292.9 MB, free: 20.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0008916/0.1319, allocations: 0.6584 MB / 293.6 MB, free: 20.36 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.132, allocations: 8.688 kB / 293.6 MB, free: 20.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.132, allocations: 7.625 kB / 293.6 MB, free: 20.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003798/0.1324, allocations: 102.2 kB / 293.7 MB, free: 20.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004359/0.1328, allocations: 184.7 kB / 293.9 MB, free: 20.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009994/0.1338, allocations: 3.551 MB / 297.4 MB, free: 16.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.1341, allocations: 42.59 kB / 297.4 MB, free: 16.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.453e-05/0.1341, allocations: 39.95 kB / 297.5 MB, free: 16.88 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.0001412/0.1343, allocations: 212.2 kB / 297.7 MB, free: 16.72 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.466e-05/0.1344, allocations: 66.98 kB / 297.8 MB, free: 16.7 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006391/0.135, allocations: 0.4908 MB / 298.2 MB, free: 16.62 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.135, allocations: 5.844 kB / 298.3 MB, free: 16.62 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.135, allocations: 1.156 kB / 298.3 MB, free: 16.62 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.135, allocations: 4 kB / 298.3 MB, free: 16.62 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/0.1361, allocations: 1.016 MB / 299.3 MB, free: 16.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.1361, allocations: 0.7969 kB / 299.3 MB, free: 16.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000303/0.1364, allocations: 119.1 kB / 299.4 MB, free: 16.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002769/0.1367, allocations: 85.22 kB / 299.5 MB, free: 16.27 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/0.1367, allocations: 20 kB / 299.5 MB, free: 16.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007775/0.1375, allocations: 3.549 MB / 303 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1375, allocations: 5 kB / 303 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007638/0.1382, allocations: 0.7036 MB / 303.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.1384, allocations: 87.91 kB / 303.8 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.765e-05/0.1384, allocations: 13.38 kB / 303.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001863/0.1386, allocations: 28.53 kB / 303.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.437e-05/0.1387, allocations: 55.14 kB / 303.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.1387, allocations: 18.47 kB / 304 MB, free: 12.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001191/0.1388, allocations: 231.6 kB / 304.2 MB, free: 12.4 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1388, allocations: 1.188 kB / 304.2 MB, free: 12.4 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004515/0.1393, allocations: 179.1 kB / 304.4 MB, free: 12.4 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.0001834/0.1395, allocations: 159 kB / 304.5 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007024/0.1402, allocations: 0.7585 MB / 305.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1402, allocations: 0 / 305.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003142/0.1405, allocations: 0.5394 MB / 305.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002598/0.1407, allocations: 53.69 kB / 305.9 MB, free: 11.58 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.1423, allocations: 1.149 MB / 307 MB, free: 11.06 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.699e-05/0.1424, allocations: 136.5 kB / 307.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002358/0.1426, allocations: 94.66 kB / 307.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.1428, allocations: 54.09 kB / 307.3 MB, free: 10.94 MB / 266.7 MB Notification: Performance of SimCode: time 7.41e-07/0.1428, allocations: 0 / 307.3 MB, free: 10.94 MB / 266.7 MB Notification: Performance of Templates: time 0.008582/0.1513, allocations: 6.992 MB / 314.3 MB, free: 9.203 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.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.7916737352497876]