Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.001527/0.001527, allocations: 111.5 kB / 18.46 MB, free: 4.691 MB / 14.72 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.002191/0.002191, allocations: 212.3 kB / 21.42 MB, free: 1.738 MB / 14.72 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 1.479/1.479, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 51.92 kB / 374.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1049, allocations: 53.34 MB / 427.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004838/0.1097, allocations: 2.824 MB / 430.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.1115, allocations: 0.7905 MB / 431.1 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003409/0.1118, allocations: 7.938 kB / 431.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003179/0.1122, allocations: 71.42 kB / 431.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004524/0.1126, allocations: 103.1 kB / 431.3 MB, free: 464 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003687/0.113, allocations: 103.9 kB / 431.4 MB, free: 360 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.191/0.304, allocations: 381.9 kB / 431.8 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003006/0.3043, allocations: 95.53 kB / 431.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005386/0.3048, allocations: 165.5 kB / 432 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003631/0.3052, allocations: 168.2 kB / 432.2 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.3053, allocations: 32.81 kB / 432.2 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.3054, allocations: 33.22 kB / 432.2 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.39e-05/0.3055, allocations: 76.25 kB / 432.3 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001895/0.3057, allocations: 179.4 kB / 432.5 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004627/0.3061, allocations: 401.8 kB / 432.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3061, allocations: 0.8438 kB / 432.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3061, allocations: 0.875 kB / 432.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.3061, allocations: 0.6875 kB / 432.9 MB, free: 8.008 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001116/0.3072, allocations: 0.6482 MB / 433.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.3073, allocations: 9.938 kB / 433.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.734e-05/0.3074, allocations: 41.02 kB / 433.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.3077, allocations: 268 kB / 433.8 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.648e-05/0.3077, allocations: 24.28 kB / 433.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.361e-05/0.3078, allocations: 33.34 kB / 433.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000524/0.3083, allocations: 292.9 kB / 434.2 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.3083, allocations: 5.969 kB / 434.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/0.3083, allocations: 12.97 kB / 434.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.3083, allocations: 7 kB / 434.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005856/0.3089, allocations: 248.9 kB / 434.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.3105, allocations: 1.115 MB / 435.6 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000394/0.3109, allocations: 144.9 kB / 435.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000188/0.311, allocations: 72.61 kB / 435.8 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.669e-05/0.3111, allocations: 2.938 kB / 435.8 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.645e-05/0.3111, allocations: 31.56 kB / 435.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.543e-06/0.3111, allocations: 1.031 kB / 435.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002133/0.3132, allocations: 0.5968 MB / 436.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.26e-05/0.3132, allocations: 54.33 kB / 436.5 MB, free: 6.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002714/0.3135, allocations: 268.5 kB / 436.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.3135, allocations: 30.05 kB / 436.8 MB, free: 6.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.3136, allocations: 233.3 kB / 437 MB, free: 6.094 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.989e-05/0.3137, allocations: 77.08 kB / 437.1 MB, free: 6.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.3138, allocations: 71.58 kB / 437.1 MB, free: 6.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.521e-05/0.3139, allocations: 339.4 kB / 437.5 MB, free: 5.703 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003034/0.3142, allocations: 100.3 kB / 437.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003301/0.3145, allocations: 192.3 kB / 437.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006029/0.3151, allocations: 301.2 kB / 438 MB, free: 5.465 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3151, allocations: 2.656 kB / 438.1 MB, free: 5.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008703/0.316, allocations: 387 kB / 438.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.316, allocations: 11.06 kB / 438.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.316, allocations: 2.156 kB / 438.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002589/0.3163, allocations: 67.86 kB / 438.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003331/0.3166, allocations: 72.34 kB / 438.6 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/0.318, allocations: 2.833 MB / 441.4 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.3183, allocations: 29.42 kB / 441.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.3184, allocations: 11.92 kB / 441.5 MB, free: 2.609 MB / 350.1 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 (37): * Single equations (assignments): 35 * 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.0001383/0.3185, allocations: 156.4 kB / 441.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.218e-05/0.3186, allocations: 25.03 kB / 441.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.3e-05/0.3186, allocations: 30.97 kB / 441.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.3186, allocations: 3.953 kB / 441.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.3186, allocations: 1.344 kB / 441.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.3187, allocations: 1.266 kB / 441.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003785/0.319, allocations: 339.2 kB / 442 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.319, allocations: 3.797 kB / 442 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002216/0.3193, allocations: 45.44 kB / 442 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001532/0.3194, allocations: 52.88 kB / 442.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.3194, allocations: 2.453 kB / 442.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001561/0.321, allocations: 2.836 MB / 444.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.321, allocations: 0.5156 kB / 444.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008273/0.3218, allocations: 377.4 kB / 445.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.018e-05/0.3219, allocations: 100.4 kB / 445.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.3219, allocations: 7.047 kB / 445.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.3222, allocations: 20.95 kB / 445.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.508e-05/0.3222, allocations: 19.75 kB / 445.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.3223, allocations: 4.625 kB / 445.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002218/0.3225, allocations: 187.4 kB / 445.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3225, allocations: 0 / 445.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004709/0.323, allocations: 70.31 kB / 445.7 MB, free: 14.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (18): * Single equations (assignments): 16 * 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.0001341/0.3231, allocations: 110.5 kB / 445.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.3242, allocations: 475.5 kB / 446.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.3242, allocations: 5.094 kB / 446.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005798/0.3248, allocations: 336.9 kB / 446.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003734/0.3252, allocations: 29.47 kB / 446.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.3264, allocations: 0.5868 MB / 447.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/0.3269, allocations: 0.7716 MB / 448 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.327, allocations: 23.56 kB / 448 MB, free: 13.12 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.327, allocations: 0 / 448 MB, free: 13.12 MB / 366.1 MB Notification: Performance of Templates: time 0.01009/0.3371, allocations: 5.986 MB / 454 MB, free: 12.19 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.953537232999224]