Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.001296/0.001296, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001347/0.001347, allocations: 209.8 kB / 23.73 MB, free: 4.523 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.454/1.454, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 43.92 kB / 378.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2609, allocations: 53.37 MB / 431.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.004728/0.2657, allocations: 3.245 MB / 434.8 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001653/0.2673, allocations: 0.9269 MB / 435.7 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002039/0.2675, allocations: 8 kB / 435.8 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002778/0.2678, allocations: 91.11 kB / 435.8 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004036/0.2682, allocations: 174.4 kB / 436 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003774/0.2686, allocations: 175.6 kB / 436.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006476/0.2692, allocations: 0.627 MB / 436.8 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002816/0.2695, allocations: 146 kB / 437 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002903/0.2698, allocations: 247 kB / 437.2 MB, free: 1.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003664/0.2702, allocations: 274.7 kB / 437.5 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.076e-05/0.2702, allocations: 52 kB / 437.5 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.82e-05/0.2703, allocations: 52 kB / 437.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001147/0.2704, allocations: 123.5 kB / 437.7 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002328/0.2707, allocations: 238.8 kB / 437.9 MB, free: 344 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006896/0.2714, allocations: 0.6404 MB / 438.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2714, allocations: 0 / 438.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.2714, allocations: 7.938 kB / 438.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.2714, allocations: 0 / 438.6 MB, free: 15.69 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001552/0.2729, allocations: 0.7972 MB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.273, allocations: 8.031 kB / 439.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.2731, allocations: 68.52 kB / 439.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005003/0.2736, allocations: 294.1 kB / 439.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.42e-05/0.2736, allocations: 37.69 kB / 439.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.489e-05/0.2737, allocations: 48.38 kB / 439.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008914/0.2746, allocations: 446.3 kB / 440.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.2746, allocations: 0 / 440.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.647e-05/0.2747, allocations: 24 kB / 440.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.846e-05/0.2747, allocations: 12 kB / 440.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008911/0.2756, allocations: 385 kB / 440.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/0.278, allocations: 1.262 MB / 441.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000765/0.2788, allocations: 303.4 kB / 442.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004394/0.2792, allocations: 161.4 kB / 442.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.184e-05/0.2793, allocations: 12.31 kB / 442.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.2793, allocations: 34.89 kB / 442.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.733e-06/0.2793, allocations: 0 / 442.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.00339/0.2827, allocations: 1.188 MB / 443.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.2828, allocations: 67.89 kB / 443.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004531/0.2832, allocations: 405.4 kB / 444.1 MB, free: 10 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.2832, allocations: 33.8 kB / 444.1 MB, free: 9.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002289/0.2835, allocations: 324.5 kB / 444.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001558/0.2836, allocations: 198.3 kB / 444.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/0.2838, allocations: 114.3 kB / 444.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.284, allocations: 350.8 kB / 445.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004419/0.2844, allocations: 181.2 kB / 445.2 MB, free: 8.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005397/0.2849, allocations: 307.2 kB / 445.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009642/0.2859, allocations: 492 kB / 446 MB, free: 7.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2859, allocations: 0 / 446 MB, free: 7.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001523/0.2874, allocations: 0.7366 MB / 446.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.2875, allocations: 11.94 kB / 446.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.2875, allocations: 3.984 kB / 446.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005538/0.288, allocations: 181.2 kB / 447 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005092/0.2885, allocations: 115.8 kB / 447.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004431/0.293, allocations: 3.981 MB / 451 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005182/0.2935, allocations: 39.88 kB / 451.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.601e-05/0.2935, allocations: 23.98 kB / 451.1 MB, free: 2.629 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 (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 0.0003321/0.2939, allocations: 177.7 kB / 451.3 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.617e-05/0.294, allocations: 47.72 kB / 451.3 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001414/0.2941, allocations: 61.03 kB / 451.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.2941, allocations: 8.062 kB / 451.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-05/0.2941, allocations: 4 kB / 451.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.2941, allocations: 7.922 kB / 451.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/0.2966, allocations: 1.132 MB / 452.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.2966, allocations: 4 kB / 452.5 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003376/0.2969, allocations: 67.89 kB / 452.6 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000453/0.2974, allocations: 165.7 kB / 452.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.13e-05/0.2974, allocations: 12.19 kB / 452.8 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004047/0.3015, allocations: 3.822 MB / 456.6 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.919e-06/0.3015, allocations: 0 / 456.6 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/0.3028, allocations: 0.6885 MB / 457.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.658e-05/0.3028, allocations: 47.66 kB / 457.3 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.051e-05/0.3029, allocations: 12 kB / 457.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/0.3032, allocations: 20.09 kB / 457.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.3033, allocations: 52.22 kB / 457.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.871e-05/0.3033, allocations: 20 kB / 457.4 MB, free: 12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000406/0.3037, allocations: 275.2 kB / 457.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3037, allocations: 0 / 457.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007048/0.3045, allocations: 152 kB / 457.9 MB, free: 11.58 MB / 366.1 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 0.0001508/0.3046, allocations: 111.1 kB / 458 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.3062, allocations: 0.7618 MB / 458.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3062, allocations: 4.25 kB / 458.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008228/0.307, allocations: 0.5074 MB / 459.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004286/0.3074, allocations: 37.5 kB / 459.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001962/0.3094, allocations: 0.9712 MB / 460.3 MB, free: 9.078 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.3097, allocations: 259 kB / 460.5 MB, free: 8.797 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001701/0.3099, allocations: 44.25 kB / 460.5 MB, free: 8.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.31, allocations: 35.44 kB / 460.6 MB, free: 8.715 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.31, allocations: 4 kB / 460.6 MB, free: 8.711 MB / 366.1 MB Notification: Performance of Templates: time 0.01227/0.3222, allocations: 5.907 MB / 466.5 MB, free: 2.836 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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: 4.704106278251857]