Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.0009451/0.0009451, 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.0009215/0.0009215, 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.9177/0.9177, allocations: 173.3 MB / 201.1 MB, free: 9.336 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.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.0.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.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.457e-05/2.591e-05, allocations: 2.312 kB / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004553/0.004579, allocations: 4.977 MB / 273 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002763/0.007342, allocations: 2.039 MB / 275 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002803/0.007622, allocations: 16 kB / 275 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001736/0.009358, allocations: 1.474 MB / 276.5 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008885/0.01025, allocations: 0.5746 MB / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.01137, allocations: 1.023 MB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006903/0.01206, allocations: 0.7664 MB / 278.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006505/0.01271, allocations: 0.5753 MB / 279.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004244/0.01313, allocations: 482.9 kB / 279.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002905/0.01342, allocations: 343 kB / 280.3 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.025e-05/0.01349, allocations: 68 kB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005379/0.01403, allocations: 371.4 kB / 280.7 MB, free: 9.672 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.605e-05/0.01412, allocations: 167.3 kB / 280.9 MB, free: 9.508 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001675/0.01429, allocations: 259.3 kB / 281.1 MB, free: 9.254 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008091/0.01509, allocations: 0.8837 MB / 282 MB, free: 8.367 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.315e-06/0.0151, allocations: 4 kB / 282 MB, free: 8.363 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.82e-07/0.0151, allocations: 0 / 282 MB, free: 8.363 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.01511, allocations: 0 / 282 MB, free: 8.363 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.00226/0.01737, allocations: 1.49 MB / 283.5 MB, free: 6.832 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.0174, allocations: 8.922 kB / 283.5 MB, free: 6.824 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00137/0.01877, allocations: 0.5116 MB / 284 MB, free: 6.312 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.01892, allocations: 200.3 kB / 284.2 MB, free: 6.086 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.767e-05/0.01897, allocations: 66.38 kB / 284.3 MB, free: 6.023 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.01907, allocations: 84.33 kB / 284.3 MB, free: 5.941 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008475/0.01992, allocations: 0.7123 MB / 285.1 MB, free: 5.203 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.01994, allocations: 4.188 kB / 285.1 MB, free: 5.199 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.789e-05/0.01999, allocations: 28.38 kB / 285.1 MB, free: 5.172 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.552e-05/0.02, allocations: 23.94 kB / 285.1 MB, free: 5.148 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006292/0.02063, allocations: 435.7 kB / 285.5 MB, free: 4.727 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002446/0.02308, allocations: 2.299 MB / 287.8 MB, free: 2.309 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005262/0.0236, allocations: 414.9 kB / 288.2 MB, free: 1.891 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.02377, allocations: 137.1 kB / 288.4 MB, free: 1.754 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.285e-05/0.02383, allocations: 20.5 kB / 288.4 MB, free: 1.734 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.02385, allocations: 45.88 kB / 288.4 MB, free: 1.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.914e-06/0.02385, allocations: 0 / 288.4 MB, free: 1.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002253/0.02611, allocations: 1.334 MB / 289.8 MB, free: 308 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.02615, allocations: 85.61 kB / 289.9 MB, free: 204 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1098/0.1359, allocations: 353.5 kB / 290.2 MB, free: 22.61 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.136, allocations: 38.61 kB / 290.2 MB, free: 22.57 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000179/0.1362, allocations: 422.4 kB / 290.7 MB, free: 22.4 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.1364, allocations: 222.3 kB / 290.9 MB, free: 22.29 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/0.1365, allocations: 161.7 kB / 291 MB, free: 22.26 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.088e-05/0.1366, allocations: 0.5238 MB / 291.6 MB, free: 21.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002309/0.1368, allocations: 120.5 kB / 291.7 MB, free: 21.76 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003095/0.1372, allocations: 496.8 kB / 292.2 MB, free: 21.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005259/0.1377, allocations: 0.6223 MB / 292.8 MB, free: 20.92 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.431e-06/0.1377, allocations: 2.375 kB / 292.8 MB, free: 20.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.000872/0.1386, allocations: 0.6536 MB / 293.4 MB, free: 20.83 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1386, allocations: 9.062 kB / 293.4 MB, free: 20.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.1386, allocations: 7.984 kB / 293.4 MB, free: 20.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003283/0.1389, allocations: 94.14 kB / 293.5 MB, free: 20.81 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004386/0.1394, allocations: 186.8 kB / 293.7 MB, free: 20.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001015/0.1404, allocations: 3.551 MB / 297.3 MB, free: 17.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003053/0.1407, allocations: 48.44 kB / 297.3 MB, free: 17.35 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.225e-05/0.1407, allocations: 42.67 kB / 297.4 MB, free: 17.35 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.0001525/0.1409, allocations: 210.6 kB / 297.6 MB, free: 17.19 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.555e-05/0.141, allocations: 59.89 kB / 297.6 MB, free: 17.17 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006516/0.1416, allocations: 495.3 kB / 298.1 MB, free: 17.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.1416, allocations: 13.89 kB / 298.1 MB, free: 17.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.1416, allocations: 1.031 kB / 298.1 MB, free: 17.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.1416, allocations: 3.188 kB / 298.1 MB, free: 17.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.1427, allocations: 1.025 MB / 299.2 MB, free: 16.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1427, allocations: 0 / 299.2 MB, free: 16.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003088/0.143, allocations: 115.4 kB / 299.3 MB, free: 16.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002271/0.1433, allocations: 87.2 kB / 299.4 MB, free: 16.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.996e-05/0.1433, allocations: 16.3 kB / 299.4 MB, free: 16.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008456/0.1441, allocations: 3.547 MB / 302.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1441, allocations: 0 / 302.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007971/0.1449, allocations: 0.7071 MB / 303.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.1451, allocations: 84.34 kB / 303.7 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.628e-05/0.1451, allocations: 12.39 kB / 303.7 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002477/0.1454, allocations: 28.8 kB / 303.7 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.1455, allocations: 50.39 kB / 303.8 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-05/0.1455, allocations: 19.62 kB / 303.8 MB, free: 13 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001559/0.1457, allocations: 222.2 kB / 304 MB, free: 12.88 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1457, allocations: 0.8125 kB / 304 MB, free: 12.88 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006513/0.1463, allocations: 176.7 kB / 304.2 MB, free: 12.88 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.0002111/0.1465, allocations: 164.5 kB / 304.4 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000903/0.1474, allocations: 0.7586 MB / 305.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1474, allocations: 1.625 kB / 305.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004309/0.1479, allocations: 0.5443 MB / 305.7 MB, free: 12.06 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.1482, allocations: 61.02 kB / 305.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.1503, allocations: 1.128 MB / 306.9 MB, free: 11.53 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001088/0.1504, allocations: 136.8 kB / 307 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003118/0.1507, allocations: 90.25 kB / 307.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.1508, allocations: 52.59 kB / 307.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.1508, allocations: 0 / 307.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of Templates: time 0.0103/0.1611, allocations: 6.31 MB / 313.4 MB, free: 10.03 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.9818852809257805]