Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.0009195/0.0009195, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001483/0.001483, allocations: 146.3 kB / 24.89 MB, free: 8.781 MB / 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.8648/0.8648, allocations: 173.4 MB / 201.5 MB, free: 8.262 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.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 268.5 MB, free: 9.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.533e-05/1.676e-05, allocations: 2.312 kB / 268.5 MB, free: 9.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.003544/0.003561, allocations: 3.431 MB / 271.9 MB, free: 6.371 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001728/0.005289, allocations: 0.9483 MB / 272.8 MB, free: 5.426 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001942/0.005483, allocations: 12.62 kB / 272.9 MB, free: 5.414 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001804/0.005663, allocations: 87.16 kB / 272.9 MB, free: 5.328 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002788/0.005942, allocations: 173.9 kB / 273.1 MB, free: 5.16 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002502/0.006192, allocations: 173.9 kB / 273.3 MB, free: 4.992 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004104/0.006603, allocations: 0.6502 MB / 273.9 MB, free: 4.34 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.006763, allocations: 134.6 kB / 274.1 MB, free: 4.195 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003031/0.007066, allocations: 375.7 kB / 274.4 MB, free: 3.828 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000169/0.007235, allocations: 199.4 kB / 274.6 MB, free: 3.633 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.189e-05/0.007287, allocations: 52.69 kB / 274.7 MB, free: 3.582 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.486e-05/0.007332, allocations: 52 kB / 274.7 MB, free: 3.531 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.387e-05/0.007396, allocations: 128 kB / 274.9 MB, free: 3.406 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.007514, allocations: 196.1 kB / 275 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002903/0.007805, allocations: 406.4 kB / 275.4 MB, free: 2.816 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.513e-06/0.007806, allocations: 0.9375 kB / 275.4 MB, free: 2.816 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.71e-07/0.007807, allocations: 0 / 275.4 MB, free: 2.816 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.00781, allocations: 0.5 kB / 275.4 MB, free: 2.816 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.0006603/0.008471, allocations: 0.7529 MB / 276.2 MB, free: 2.035 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.015e-05/0.008491, allocations: 8.031 kB / 276.2 MB, free: 2.027 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.136e-05/0.008562, allocations: 84.88 kB / 276.3 MB, free: 1.945 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002041/0.008766, allocations: 249.4 kB / 276.5 MB, free: 1.68 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.008792, allocations: 37.69 kB / 276.6 MB, free: 1.645 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.141e-05/0.008833, allocations: 52.38 kB / 276.6 MB, free: 1.594 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002756/0.009109, allocations: 315.7 kB / 276.9 MB, free: 1.277 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.009119, allocations: 4.172 kB / 276.9 MB, free: 1.273 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.204e-05/0.009141, allocations: 23.94 kB / 277 MB, free: 1.25 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.009148, allocations: 12 kB / 277 MB, free: 1.238 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001639/0.009312, allocations: 146.4 kB / 277.1 MB, free: 1.098 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.01038, allocations: 1.044 MB / 278.2 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002196/0.0106, allocations: 187.4 kB / 278.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.01071, allocations: 89.47 kB / 278.4 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.01073, allocations: 12.31 kB / 278.4 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.771e-05/0.01075, allocations: 34.89 kB / 278.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 1.253e-06/0.01075, allocations: 4 kB / 278.5 MB, free: 15.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.001402/0.01215, allocations: 0.9145 MB / 279.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.132e-05/0.01217, allocations: 63.89 kB / 279.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.01235, allocations: 339.1 kB / 279.8 MB, free: 14.31 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.01237, allocations: 37.7 kB / 279.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.69e-05/0.01247, allocations: 285.2 kB / 280.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.01257, allocations: 190.3 kB / 280.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.202e-05/0.01266, allocations: 118.2 kB / 280.4 MB, free: 13.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.147e-05/0.01274, allocations: 362.7 kB / 280.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.811e-05/0.01281, allocations: 57.28 kB / 280.8 MB, free: 13.26 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.01293, allocations: 181.6 kB / 281 MB, free: 13.04 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.01315, allocations: 308.1 kB / 281.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.01316, allocations: 0 / 281.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0003987/0.01355, allocations: 430.2 kB / 281.7 MB, free: 12.26 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.248e-06/0.01356, allocations: 8.406 kB / 281.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.01357, allocations: 8 kB / 281.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004723/0.01404, allocations: 221.5 kB / 281.9 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.01424, allocations: 103.8 kB / 282 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001674/0.01591, allocations: 3.305 MB / 285.3 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001465/0.01606, allocations: 20 kB / 285.4 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.01608, allocations: 20 kB / 285.4 MB, free: 8.414 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.815e-05/0.01618, allocations: 145.6 kB / 285.5 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.0163, allocations: 47.91 kB / 285.6 MB, free: 8.215 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.065e-05/0.01635, allocations: 64.92 kB / 285.6 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.01635, allocations: 4 kB / 285.6 MB, free: 8.145 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/0.01637, allocations: 7.938 kB / 285.7 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.01637, allocations: 0 / 285.7 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007514/0.01712, allocations: 0.7284 MB / 286.4 MB, free: 7.367 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.01712, allocations: 0 / 286.4 MB, free: 7.367 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.01724, allocations: 63.89 kB / 286.4 MB, free: 7.305 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004202/0.01766, allocations: 205.6 kB / 286.6 MB, free: 7.098 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.01768, allocations: 19.92 kB / 286.7 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001683/0.01936, allocations: 3.174 MB / 289.8 MB, free: 3.734 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01937, allocations: 4 kB / 289.8 MB, free: 3.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003681/0.01973, allocations: 454.6 kB / 290.3 MB, free: 3.25 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.017e-05/0.01977, allocations: 39.67 kB / 290.3 MB, free: 3.211 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.69e-05/0.0198, allocations: 12 kB / 290.3 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.01991, allocations: 15.98 kB / 290.4 MB, free: 3.184 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.658e-05/0.01998, allocations: 48.36 kB / 290.4 MB, free: 3.137 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.01999, allocations: 11.98 kB / 290.4 MB, free: 3.125 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.791e-05/0.02009, allocations: 140.7 kB / 290.5 MB, free: 2.984 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02009, allocations: 4 kB / 290.6 MB, free: 2.98 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003878/0.02047, allocations: 152 kB / 290.7 MB, free: 2.832 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (35): * Single equations (assignments): 33 * 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 7.307e-05/0.02055, allocations: 92.36 kB / 290.8 MB, free: 2.734 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004958/0.02104, allocations: 0.5919 MB / 291.4 MB, free: 2.117 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/0.02105, allocations: 4 kB / 291.4 MB, free: 2.113 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002768/0.02133, allocations: 450.6 kB / 291.8 MB, free: 1.645 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001903/0.02152, allocations: 45.42 kB / 291.9 MB, free: 1.602 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009528/0.02247, allocations: 0.8862 MB / 292.8 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.758e-05/0.02256, allocations: 134.3 kB / 292.9 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.4e-05/0.02265, allocations: 40.28 kB / 292.9 MB, free: 484 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.02275, allocations: 95.36 kB / 293 MB, free: 388 kB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.02276, allocations: 0 / 293 MB, free: 388 kB / 266.7 MB Notification: Performance of Templates: time 0.0074/0.03016, allocations: 5.438 MB / 298.5 MB, free: 10.99 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/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.638044271618128]