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.001328/0.001328, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001478/0.001478, allocations: 215.3 kB / 23.73 MB, free: 4.156 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.431/1.431, allocations: 230.6 MB / 257.5 MB, free: 7.812 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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001698/0.001698, allocations: 59.92 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2485, allocations: 53.36 MB / 431.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.004985/0.2535, allocations: 3.237 MB / 434.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.2554, allocations: 0.9153 MB / 435.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002063/0.2556, allocations: 11.94 kB / 435.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002889/0.2559, allocations: 95.08 kB / 435.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003958/0.2563, allocations: 172.4 kB / 435.5 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003669/0.2566, allocations: 175.7 kB / 435.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006122/0.2573, allocations: 0.6308 MB / 436.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002492/0.2575, allocations: 134 kB / 436.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000268/0.2578, allocations: 243 kB / 436.7 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003006/0.2581, allocations: 246.6 kB / 436.9 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.583e-05/0.2582, allocations: 52 kB / 437 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.427e-05/0.2582, allocations: 52 kB / 437 MB, free: 0.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.2584, allocations: 127.5 kB / 437.1 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.2586, allocations: 230.9 kB / 437.4 MB, free: 364 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006606/0.2592, allocations: 0.6419 MB / 438 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2592, allocations: 4 kB / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2592, allocations: 0 / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.268e-06/0.2592, allocations: 3.938 kB / 438 MB, free: 15.7 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.001468/0.2607, allocations: 0.7996 MB / 438.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.2608, allocations: 8.031 kB / 438.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000107/0.2609, allocations: 90.7 kB / 438.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.829e-05/0.261, allocations: 68.52 kB / 439 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005279/0.2615, allocations: 294.1 kB / 439.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.647e-05/0.2615, allocations: 37.69 kB / 439.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.434e-05/0.2616, allocations: 60.12 kB / 439.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008657/0.2625, allocations: 434.5 kB / 439.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.2625, allocations: 0 / 439.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.223e-05/0.2625, allocations: 20 kB / 439.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.2626, allocations: 15.98 kB / 439.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000862/0.2634, allocations: 393 kB / 440.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002464/0.2659, allocations: 1.321 MB / 441.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006957/0.2666, allocations: 308.8 kB / 441.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003939/0.267, allocations: 157.4 kB / 442 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.03e-05/0.267, allocations: 4.328 kB / 442 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.267, allocations: 42.88 kB / 442 MB, free: 11.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.703e-06/0.267, allocations: 0 / 442 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.003308/0.2703, allocations: 1.203 MB / 443.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.2704, allocations: 63.89 kB / 443.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004758/0.2709, allocations: 417.5 kB / 443.7 MB, free: 9.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.099e-05/0.2709, allocations: 29.7 kB / 443.7 MB, free: 9.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002251/0.2711, allocations: 312.7 kB / 444 MB, free: 9.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.2713, allocations: 202.3 kB / 444.2 MB, free: 9.266 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.2714, allocations: 102.3 kB / 444.3 MB, free: 9.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.2716, allocations: 366.8 kB / 444.7 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004289/0.272, allocations: 177.3 kB / 444.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005183/0.2726, allocations: 306.9 kB / 445.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009543/0.2735, allocations: 500 kB / 445.7 MB, free: 7.746 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-06/0.2735, allocations: 7.938 kB / 445.7 MB, free: 7.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001487/0.275, allocations: 0.7288 MB / 446.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.275, allocations: 8 kB / 446.4 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.275, allocations: 7.938 kB / 446.4 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005321/0.2756, allocations: 188.8 kB / 446.6 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004824/0.276, allocations: 107.9 kB / 446.7 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004356/0.2804, allocations: 4.027 MB / 450.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004101/0.2808, allocations: 31.97 kB / 450.8 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.914e-05/0.2809, allocations: 20 kB / 450.8 MB, free: 2.383 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.0002295/0.2811, allocations: 189.8 kB / 451 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.105e-05/0.2812, allocations: 47.67 kB / 451 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001286/0.2813, allocations: 69 kB / 451.1 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.2813, allocations: 4 kB / 451.1 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.2813, allocations: 4 kB / 451.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.2813, allocations: 4 kB / 451.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002313/0.2836, allocations: 1.201 MB / 452.3 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.2836, allocations: 4 kB / 452.3 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003056/0.2839, allocations: 71.83 kB / 452.4 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004017/0.2843, allocations: 165.6 kB / 452.5 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.802e-05/0.2844, allocations: 15.94 kB / 452.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003983/0.2884, allocations: 3.848 MB / 456.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/0.2884, allocations: 4.031 kB / 456.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.2896, allocations: 0.7002 MB / 457.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.725e-05/0.2897, allocations: 51.53 kB / 457.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.376e-05/0.2898, allocations: 20 kB / 457.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003091/0.2901, allocations: 19.98 kB / 457.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.2902, allocations: 48.34 kB / 457.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/0.2902, allocations: 16 kB / 457.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003262/0.2905, allocations: 283.2 kB / 457.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2905, allocations: 0 / 457.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006709/0.2912, allocations: 148 kB / 457.7 MB, free: 11.16 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.001576/0.2928, allocations: 1.256 MB / 458.9 MB, free: 9.844 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.2943, allocations: 0.7612 MB / 459.7 MB, free: 9.055 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2943, allocations: 0 / 459.7 MB, free: 9.055 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008132/0.2951, allocations: 0.5045 MB / 460.2 MB, free: 8.527 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004319/0.2955, allocations: 57.94 kB / 460.2 MB, free: 8.473 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007191/0.3027, allocations: 4.663 MB / 464.9 MB, free: 3.617 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.303, allocations: 263 kB / 465.2 MB, free: 3.332 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001862/0.3032, allocations: 48.36 kB / 465.2 MB, free: 3.281 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/0.3034, allocations: 175.4 kB / 465.4 MB, free: 3.109 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3034, allocations: 0 / 465.4 MB, free: 3.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05654/0.36, allocations: 10.6 MB / 476 MB, free: 8.676 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.24, allocations: 6.172 kB / 476 MB, free: 8.672 MB / 382.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/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: 14.735830741003156]