Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.0008829/0.0008829, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.0008757/0.0008757, allocations: 176.9 kB / 24.92 MB, free: 8.734 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.9163/0.9163, allocations: 177.1 MB / 205.3 MB, free: 5.457 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.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.1.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.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 273.5 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.089e-05/1.198e-05, allocations: 2.312 kB / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.003954/0.003966, allocations: 4.909 MB / 278.4 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002499/0.006466, allocations: 2.159 MB / 280.5 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001738/0.00664, allocations: 16 kB / 280.5 MB, free: 10.15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001603/0.008243, allocations: 1.481 MB / 282 MB, free: 8.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000626/0.008869, allocations: 441 kB / 282.5 MB, free: 8.227 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001134/0.01, allocations: 1.167 MB / 283.6 MB, free: 7.055 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005015/0.0105, allocations: 0.7741 MB / 284.4 MB, free: 6.273 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006311/0.01113, allocations: 0.6162 MB / 285 MB, free: 5.648 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003629/0.0115, allocations: 494.9 kB / 285.5 MB, free: 5.164 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004882/0.01199, allocations: 339.1 kB / 285.8 MB, free: 4.832 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.073e-05/0.01205, allocations: 68 kB / 285.9 MB, free: 4.766 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003935/0.01244, allocations: 399.3 kB / 286.3 MB, free: 4.375 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.422e-05/0.01252, allocations: 171.3 kB / 286.4 MB, free: 4.207 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.01268, allocations: 259.3 kB / 286.7 MB, free: 3.953 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006631/0.01334, allocations: 0.9109 MB / 287.6 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.01334, allocations: 0 / 287.6 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.01334, allocations: 0 / 287.6 MB, free: 3.039 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.01335, allocations: 0 / 287.6 MB, free: 3.039 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.002079/0.01543, allocations: 1.451 MB / 289.1 MB, free: 1.559 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.683e-05/0.01545, allocations: 8.031 kB / 289.1 MB, free: 1.551 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001283/0.01674, allocations: 0.5158 MB / 289.6 MB, free: 1.035 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.01686, allocations: 208.7 kB / 289.8 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.988e-05/0.0169, allocations: 62.38 kB / 289.9 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.804e-05/0.01698, allocations: 84.38 kB / 289.9 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0962/0.1132, allocations: 0.6441 MB / 290.6 MB, free: 19.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.032e-05/0.1132, allocations: 3.125 kB / 290.6 MB, free: 19.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000134/0.1134, allocations: 31.06 kB / 290.6 MB, free: 19.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.1134, allocations: 21.81 kB / 290.6 MB, free: 19.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004675/0.1139, allocations: 290.9 kB / 290.9 MB, free: 19.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002157/0.116, allocations: 1.89 MB / 292.8 MB, free: 18.36 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000401/0.1164, allocations: 353.9 kB / 293.2 MB, free: 18.33 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.1165, allocations: 95.41 kB / 293.2 MB, free: 18.32 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.59e-05/0.1166, allocations: 26.72 kB / 293.3 MB, free: 18.32 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.1166, allocations: 41.19 kB / 293.3 MB, free: 18.28 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 2.285e-06/0.1166, allocations: 0.9375 kB / 293.3 MB, free: 18.28 MB / 266.7 MB Notification: Performance of matching and sorting (n=58): time 0.0009157/0.1175, allocations: 0.5647 MB / 293.9 MB, free: 18.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.09e-05/0.1175, allocations: 85.44 kB / 294 MB, free: 18.12 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.1177, allocations: 292 kB / 294.2 MB, free: 18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.1177, allocations: 36.23 kB / 294.3 MB, free: 17.97 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.51e-05/0.1178, allocations: 367.5 kB / 294.6 MB, free: 17.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.682e-05/0.1179, allocations: 213.4 kB / 294.8 MB, free: 17.64 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.118, allocations: 144.7 kB / 295 MB, free: 17.62 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.301e-05/0.1181, allocations: 360.3 kB / 295.3 MB, free: 17.3 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.1182, allocations: 74.31 kB / 295.4 MB, free: 17.3 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.1183, allocations: 343.2 kB / 295.7 MB, free: 17 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003225/0.1187, allocations: 467.7 kB / 296.2 MB, free: 16.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.1187, allocations: 5.875 kB / 296.2 MB, free: 16.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0004704/0.1191, allocations: 459.6 kB / 296.7 MB, free: 16.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.1192, allocations: 8.844 kB / 296.7 MB, free: 16.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.1192, allocations: 11.28 kB / 296.7 MB, free: 16.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003189/0.1195, allocations: 95.45 kB / 296.8 MB, free: 16.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000338/0.1198, allocations: 162.2 kB / 296.9 MB, free: 16.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007442/0.1206, allocations: 2.383 MB / 299.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002353/0.1208, allocations: 86.64 kB / 299.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.269e-05/0.1208, allocations: 26.03 kB / 299.4 MB, free: 14.38 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (92): * Single equations (assignments): 90 * 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.0001136/0.1209, allocations: 164.7 kB / 299.6 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.759e-05/0.121, allocations: 44.09 kB / 299.6 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004159/0.1214, allocations: 351.9 kB / 300 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.1214, allocations: 8.469 kB / 300 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.1214, allocations: 1.281 kB / 300 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.1214, allocations: 3.281 kB / 300 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007466/0.1222, allocations: 0.6512 MB / 300.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1222, allocations: 1.062 kB / 300.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002374/0.1224, allocations: 97.05 kB / 300.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002553/0.1227, allocations: 80.28 kB / 300.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.1227, allocations: 17.03 kB / 300.8 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006577/0.1234, allocations: 2.378 MB / 303.2 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1234, allocations: 0 / 303.2 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004872/0.1239, allocations: 483.7 kB / 303.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.244e-05/0.1239, allocations: 58.91 kB / 303.7 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.55e-05/0.124, allocations: 14.12 kB / 303.7 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.1241, allocations: 18.8 kB / 303.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.385e-05/0.1242, allocations: 44.8 kB / 303.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.1242, allocations: 15.75 kB / 303.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.83e-05/0.1243, allocations: 103.3 kB / 303.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1243, allocations: 0 / 303.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004283/0.1247, allocations: 226.5 kB / 304.1 MB, free: 11.45 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 (55): * Single equations (assignments): 53 * 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.0001903/0.1249, allocations: 143.6 kB / 304.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000508/0.1254, allocations: 0.5546 MB / 304.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/0.1254, allocations: 5.469 kB / 304.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002383/0.1257, allocations: 389.1 kB / 305.2 MB, free: 10.9 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001992/0.1259, allocations: 54.89 kB / 305.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.1272, allocations: 1.053 MB / 306.3 MB, free: 10.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.288e-05/0.1273, allocations: 137 kB / 306.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001971/0.1275, allocations: 83.05 kB / 306.5 MB, free: 10.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001714/0.1277, allocations: 125.8 kB / 306.7 MB, free: 10.22 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.1277, allocations: 4 kB / 306.7 MB, free: 10.22 MB / 266.7 MB Notification: Performance of Templates: time 0.008146/0.1358, allocations: 6.524 MB / 313.2 MB, free: 8.234 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.8242798359133303]