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.001516/0.001516, 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.001691/0.001691, allocations: 211.6 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.412/1.412, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001548/0.001548, allocations: 51.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2376, allocations: 53.36 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.005026/0.2426, allocations: 3.243 MB / 434.3 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00186/0.2444, allocations: 0.9269 MB / 435.2 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001966/0.2446, allocations: 12 kB / 435.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002769/0.2449, allocations: 91.11 kB / 435.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003886/0.2453, allocations: 168.4 kB / 435.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003702/0.2457, allocations: 179.6 kB / 435.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006194/0.2463, allocations: 0.6348 MB / 436.3 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/0.2465, allocations: 138 kB / 436.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002673/0.2468, allocations: 251 kB / 436.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000319/0.2471, allocations: 274.7 kB / 437 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.118e-05/0.2472, allocations: 52 kB / 437 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.557e-05/0.2473, allocations: 52 kB / 437.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.2474, allocations: 119.5 kB / 437.2 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002346/0.2476, allocations: 246.8 kB / 437.4 MB, free: 256 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006381/0.2482, allocations: 0.6379 MB / 438.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2483, allocations: 0 / 438.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2483, allocations: 3.938 kB / 438.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.2483, allocations: 0 / 438.1 MB, free: 15.61 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.001486/0.2497, allocations: 0.7999 MB / 438.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.2498, allocations: 12.03 kB / 438.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.854e-05/0.2499, allocations: 90.7 kB / 439 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.797e-05/0.25, allocations: 64.52 kB / 439 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004936/0.2505, allocations: 294.1 kB / 439.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.737e-05/0.2505, allocations: 41.69 kB / 439.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.861e-05/0.2506, allocations: 52.12 kB / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008184/0.2514, allocations: 446.4 kB / 439.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.2514, allocations: 0 / 439.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.27e-05/0.2515, allocations: 20 kB / 439.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.2515, allocations: 12 kB / 439.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008313/0.2523, allocations: 393 kB / 440.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002386/0.2547, allocations: 1.313 MB / 441.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006622/0.2554, allocations: 304.8 kB / 441.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003874/0.2557, allocations: 157.4 kB / 442 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.011e-05/0.2558, allocations: 12.31 kB / 442 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/0.2558, allocations: 34.89 kB / 442.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.573e-06/0.2558, allocations: 3.938 kB / 442.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.00324/0.2591, allocations: 1.207 MB / 443.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.2591, allocations: 63.78 kB / 443.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000455/0.2596, allocations: 421.4 kB / 443.8 MB, free: 9.715 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.158e-05/0.2596, allocations: 29.7 kB / 443.8 MB, free: 9.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00022/0.2598, allocations: 312.7 kB / 444.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.26, allocations: 202.3 kB / 444.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.2601, allocations: 114.3 kB / 444.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.2603, allocations: 362.8 kB / 444.8 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000426/0.2607, allocations: 169.2 kB / 444.9 MB, free: 8.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005022/0.2612, allocations: 299.1 kB / 445.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009056/0.2621, allocations: 0.4922 MB / 445.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.2621, allocations: 11.86 kB / 445.7 MB, free: 7.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001419/0.2636, allocations: 0.7325 MB / 446.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.2636, allocations: 8 kB / 446.5 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.2636, allocations: 4.188 kB / 446.5 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005168/0.2641, allocations: 184.6 kB / 446.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004961/0.2646, allocations: 119.8 kB / 446.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004132/0.2687, allocations: 4.015 MB / 450.8 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000386/0.2691, allocations: 31.97 kB / 450.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.011e-05/0.2692, allocations: 24.06 kB / 450.8 MB, free: 2.285 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.0002219/0.2694, allocations: 181.7 kB / 451 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.971e-05/0.2695, allocations: 51.67 kB / 451.1 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001239/0.2696, allocations: 61.02 kB / 451.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.2696, allocations: 8 kB / 451.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.2696, allocations: 4 kB / 451.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.2696, allocations: 3.984 kB / 451.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/0.2718, allocations: 1.213 MB / 452.3 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2718, allocations: 192 / 452.3 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003072/0.2721, allocations: 67.89 kB / 452.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004145/0.2725, allocations: 173.5 kB / 452.6 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.884e-05/0.2726, allocations: 12 kB / 452.6 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003693/0.2763, allocations: 3.845 MB / 456.4 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2763, allocations: 4.125 kB / 456.4 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.2775, allocations: 0.6962 MB / 457.1 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.815e-05/0.2776, allocations: 47.59 kB / 457.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.429e-05/0.2776, allocations: 12.11 kB / 457.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.2779, allocations: 31.91 kB / 457.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.842e-05/0.278, allocations: 48.34 kB / 457.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.577e-05/0.2781, allocations: 12 kB / 457.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003066/0.2784, allocations: 283.2 kB / 457.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2784, allocations: 0 / 457.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006577/0.279, allocations: 152 kB / 457.7 MB, free: 11.07 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.001525/0.2805, allocations: 1.256 MB / 459 MB, free: 9.758 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.282, allocations: 0.7613 MB / 459.7 MB, free: 8.969 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.282, allocations: 0 / 459.7 MB, free: 8.969 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008128/0.2828, allocations: 0.5123 MB / 460.2 MB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004193/0.2832, allocations: 41.59 kB / 460.3 MB, free: 8.395 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006867/0.2901, allocations: 4.665 MB / 464.9 MB, free: 3.535 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.2903, allocations: 263.2 kB / 465.2 MB, free: 3.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001659/0.2905, allocations: 48.3 kB / 465.3 MB, free: 3.199 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.2907, allocations: 179.3 kB / 465.4 MB, free: 3.023 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2907, allocations: 8 kB / 465.4 MB, free: 3.016 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04304/0.3338, allocations: 10.79 MB / 476.2 MB, free: 8.402 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.91, allocations: 0 / 476.2 MB, free: 8.402 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.245482943020761]