Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.0007223/0.0007223, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001018/0.00174, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001282/0.001282, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00145/0.002732, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 1.006/1.006, allocations: 173.4 MB / 185.8 MB, free: 8.98 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08101/1.087, allocations: 52.5 MB / 238.3 MB, free: 4.422 MB / 234.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.QuadraticCoreAirgap,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.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,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.QuadraticCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 239.5 MB, free: 3.172 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.952e-05/2.091e-05, allocations: 2.312 kB / 239.5 MB, free: 3.168 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.008056/0.008076, allocations: 6.498 MB / 246 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003598/0.01167, allocations: 2.435 MB / 248.5 MB, free: 10.2 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004117/0.01209, allocations: 24 kB / 248.5 MB, free: 10.17 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002008/0.01409, allocations: 1.987 MB / 250.5 MB, free: 8.176 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001215/0.01531, allocations: 0.6985 MB / 251.2 MB, free: 7.473 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00136/0.01667, allocations: 1.135 MB / 252.3 MB, free: 6.336 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009761/0.01765, allocations: 1.163 MB / 253.5 MB, free: 5.164 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000862/0.01851, allocations: 0.8216 MB / 254.3 MB, free: 4.312 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006293/0.01914, allocations: 0.7372 MB / 255 MB, free: 3.574 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004235/0.01956, allocations: 490.6 kB / 255.5 MB, free: 3.094 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.965e-05/0.01966, allocations: 100 kB / 255.6 MB, free: 2.996 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00069/0.02035, allocations: 431.3 kB / 256 MB, free: 2.574 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.02045, allocations: 179.4 kB / 256.2 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002416/0.02069, allocations: 315.4 kB / 256.5 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.02171, allocations: 1.07 MB / 257.6 MB, free: 1.016 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.67e-05/0.02173, allocations: 4 kB / 257.6 MB, free: 1.012 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.02173, allocations: 0 / 257.6 MB, free: 1.012 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.296e-05/0.02175, allocations: 0 / 257.6 MB, free: 1.012 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.003296/0.02505, allocations: 2.342 MB / 259.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.02508, allocations: 12.03 kB / 260 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001827/0.02691, allocations: 0.7769 MB / 260.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002117/0.02712, allocations: 244.2 kB / 261 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.288e-05/0.02718, allocations: 98.95 kB / 261.1 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.02731, allocations: 132.4 kB / 261.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008838/0.0282, allocations: 0.9308 MB / 262.1 MB, free: 12.37 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.726e-05/0.02822, allocations: 4.141 kB / 262.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.328e-05/0.02829, allocations: 56.36 kB / 262.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/0.02831, allocations: 35.94 kB / 262.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005236/0.02883, allocations: 428.1 kB / 262.6 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003123/0.03195, allocations: 2.65 MB / 265.3 MB, free: 9.086 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000796/0.03275, allocations: 0.8018 MB / 266.1 MB, free: 8.273 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002308/0.03298, allocations: 227.4 kB / 266.3 MB, free: 8.047 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.387e-05/0.03307, allocations: 36.98 kB / 266.4 MB, free: 8.012 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.03311, allocations: 47.56 kB / 266.4 MB, free: 7.957 MB / 266.7 MB Notification: Performance of pre-optimization done (n=122): time 3.727e-06/0.03311, allocations: 0 / 266.4 MB, free: 7.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.001884/0.03499, allocations: 1.253 MB / 267.7 MB, free: 6.691 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.03503, allocations: 68.34 kB / 267.7 MB, free: 6.613 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.03524, allocations: 354.9 kB / 268.1 MB, free: 6.254 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.215e-05/0.03528, allocations: 45.7 kB / 268.1 MB, free: 6.203 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.03546, allocations: 452.5 kB / 268.6 MB, free: 5.754 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002062/0.03567, allocations: 436.2 kB / 269 MB, free: 5.324 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001996/0.03587, allocations: 219.4 kB / 269.2 MB, free: 5.102 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.03599, allocations: 378.6 kB / 269.6 MB, free: 4.723 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.03614, allocations: 139.9 kB / 269.7 MB, free: 4.586 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002909/0.03644, allocations: 425.4 kB / 270.1 MB, free: 4.066 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005448/0.03698, allocations: 0.6347 MB / 270.7 MB, free: 3.336 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.03699, allocations: 8 kB / 270.8 MB, free: 3.328 MB / 266.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.0007611/0.03775, allocations: 0.7367 MB / 271.5 MB, free: 2.578 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.03777, allocations: 12 kB / 271.5 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.03778, allocations: 8 kB / 271.5 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005556/0.03834, allocations: 236.8 kB / 271.7 MB, free: 2.324 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006943/0.03903, allocations: 299.6 kB / 272 MB, free: 2.031 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1048/0.1438, allocations: 3.356 MB / 275.4 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005437/0.1443, allocations: 127.8 kB / 275.5 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.199e-05/0.1444, allocations: 39.75 kB / 275.6 MB, free: 15.13 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (143): * Single equations (assignments): 141 * 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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002172/0.1446, allocations: 185.1 kB / 275.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.95e-05/0.1447, allocations: 80 kB / 275.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008205/0.1455, allocations: 0.6866 MB / 276.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.427e-06/0.1455, allocations: 12.69 kB / 276.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1455, allocations: 3.156 kB / 276.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.1455, allocations: 10.56 kB / 276.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00155/0.1471, allocations: 1.231 MB / 277.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1471, allocations: 3.344 kB / 277.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004412/0.1475, allocations: 204.5 kB / 278 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001624/0.1477, allocations: 105 kB / 278.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004821/0.1482, allocations: 213.5 kB / 278.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.635e-05/0.1482, allocations: 24.41 kB / 278.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001469/0.1497, allocations: 3.208 MB / 281.5 MB, free: 12.08 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1497, allocations: 5.75 kB / 281.5 MB, free: 12.08 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009261/0.1506, allocations: 0.866 MB / 282.4 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.127e-05/0.1507, allocations: 27.31 kB / 282.4 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000214/0.1509, allocations: 37.89 kB / 282.4 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/0.151, allocations: 91.12 kB / 282.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.956e-05/0.1511, allocations: 23.88 kB / 282.6 MB, free: 11.85 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001254/0.1512, allocations: 127.8 kB / 282.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1512, allocations: 1.281 kB / 282.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008066/0.152, allocations: 361.2 kB / 283 MB, free: 11.8 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (103): * Single equations (assignments): 101 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002198/0.1522, allocations: 163.5 kB / 283.2 MB, free: 11.74 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008923/0.1531, allocations: 0.8879 MB / 284.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.52e-05/0.1531, allocations: 12.53 kB / 284.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004615/0.1536, allocations: 0.5949 MB / 284.7 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.1539, allocations: 135.5 kB / 284.8 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007577/0.1615, allocations: 1.929 MB / 286.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001481/0.1617, allocations: 199.9 kB / 286.9 MB, free: 10.36 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003251/0.162, allocations: 139.6 kB / 287.1 MB, free: 10.3 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002182/0.1622, allocations: 157.1 kB / 287.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.1622, allocations: 0 / 287.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of Templates: time 0.01268/0.1749, allocations: 10.6 MB / 297.8 MB, free: 7.344 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.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.915072646923363]