Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.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.001767/0.001767, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002211/0.002211, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.453/1.453, allocations: 230.6 MB / 257.5 MB, free: 7.98 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.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 43.94 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2934, allocations: 53.35 MB / 431.2 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.009033/0.3025, allocations: 6.768 MB / 437.9 MB, free: 64 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005513/0.308, allocations: 2.491 MB / 440.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007328/0.3087, allocations: 28 kB / 440.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004633/0.3134, allocations: 1.89 MB / 442.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001948/0.3153, allocations: 0.5512 MB / 442.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002925/0.3182, allocations: 1.336 MB / 444.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001887/0.3201, allocations: 1.113 MB / 445.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001346/0.3215, allocations: 0.8302 MB / 446.2 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006651/0.3221, allocations: 498.1 kB / 446.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000786/0.3229, allocations: 0.6264 MB / 447.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001423/0.3231, allocations: 100 kB / 447.4 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001091/0.3241, allocations: 447.6 kB / 447.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002395/0.3244, allocations: 251.1 kB / 448.1 MB, free: 5.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005732/0.325, allocations: 0.5597 MB / 448.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0023/0.3273, allocations: 1.677 MB / 450.3 MB, free: 3.641 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3273, allocations: 0 / 450.3 MB, free: 3.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3273, allocations: 0 / 450.3 MB, free: 3.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.3273, allocations: 0 / 450.3 MB, free: 3.641 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.006184/0.3335, allocations: 1.98 MB / 452.3 MB, free: 1.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.3335, allocations: 8.031 kB / 452.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002244/0.3337, allocations: 190.4 kB / 452.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003297/0.337, allocations: 487.8 kB / 452.9 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/0.3374, allocations: 260.8 kB / 453.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.737e-05/0.3375, allocations: 98.95 kB / 453.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000213/0.3377, allocations: 132.3 kB / 453.4 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002383/0.3401, allocations: 1.307 MB / 454.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.591e-05/0.3401, allocations: 3.938 kB / 454.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001196/0.3402, allocations: 52 kB / 454.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.25e-05/0.3403, allocations: 35.94 kB / 454.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002481/0.3428, allocations: 1.189 MB / 456 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006867/0.3496, allocations: 4.025 MB / 460 MB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002085/0.3517, allocations: 1.153 MB / 461.2 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008889/0.3526, allocations: 460.6 kB / 461.6 MB, free: 8.027 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001432/0.3527, allocations: 44.94 kB / 461.7 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.259e-05/0.3528, allocations: 47.5 kB / 461.7 MB, free: 7.926 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.437e-06/0.3528, allocations: 4 kB / 461.7 MB, free: 7.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.01003/0.3628, allocations: 3.537 MB / 465.3 MB, free: 4.348 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.13e-05/0.3629, allocations: 90.11 kB / 465.4 MB, free: 4.242 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004706/0.3634, allocations: 393.5 kB / 465.7 MB, free: 3.852 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.766e-05/0.3634, allocations: 45.7 kB / 465.8 MB, free: 3.801 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003257/0.3638, allocations: 468.6 kB / 466.2 MB, free: 3.336 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003596/0.3641, allocations: 448.1 kB / 466.7 MB, free: 2.895 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003571/0.3645, allocations: 231.5 kB / 466.9 MB, free: 2.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002069/0.3647, allocations: 370.8 kB / 467.3 MB, free: 2.289 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009951/0.3657, allocations: 435.8 kB / 467.7 MB, free: 1.863 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.3669, allocations: 0.6918 MB / 468.4 MB, free: 1.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002263/0.3692, allocations: 1.183 MB / 469.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.3692, allocations: 3.938 kB / 469.6 MB, free: 15.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002968/0.3722, allocations: 1.467 MB / 471 MB, free: 14.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/0.3722, allocations: 8 kB / 471 MB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.3722, allocations: 8 kB / 471 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005427/0.3727, allocations: 196.3 kB / 471.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.3739, allocations: 283.6 kB / 471.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004546/0.3785, allocations: 4.169 MB / 475.7 MB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008489/0.3793, allocations: 79.95 kB / 475.8 MB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.205e-05/0.3794, allocations: 55.98 kB / 475.8 MB, free: 9.289 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * 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.0004637/0.3799, allocations: 261.5 kB / 476.1 MB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.38, allocations: 67.58 kB / 476.1 MB, free: 8.957 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003116/0.3831, allocations: 1.335 MB / 477.5 MB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.3831, allocations: 15.94 kB / 477.5 MB, free: 7.598 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.587e-06/0.3831, allocations: 4 kB / 477.5 MB, free: 7.594 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.3832, allocations: 3.984 kB / 477.5 MB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004567/0.3877, allocations: 2.57 MB / 480.1 MB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.3877, allocations: 3.938 kB / 480.1 MB, free: 4.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009368/0.3887, allocations: 211.7 kB / 480.3 MB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004307/0.3891, allocations: 165.7 kB / 480.4 MB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.429e-05/0.3892, allocations: 31.98 kB / 480.5 MB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004112/0.3933, allocations: 3.977 MB / 484.4 MB, free: 316 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.3933, allocations: 4.031 kB / 484.5 MB, free: 312 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003808/0.3971, allocations: 1.869 MB / 486.3 MB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003653/0.3974, allocations: 151.5 kB / 486.5 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.86e-05/0.3975, allocations: 27.94 kB / 486.5 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006377/0.3982, allocations: 60.02 kB / 486.6 MB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001867/0.3984, allocations: 96.75 kB / 486.7 MB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.836e-05/0.3984, allocations: 35.98 kB / 486.7 MB, free: 14.04 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003181/0.3988, allocations: 271.2 kB / 487 MB, free: 13.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3988, allocations: 0 / 487 MB, free: 13.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001146/0.3999, allocations: 304.3 kB / 487.2 MB, free: 13.48 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (106): * Single equations (assignments): 104 * 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.004299/0.4042, allocations: 2.489 MB / 489.7 MB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002976/0.4072, allocations: 1.387 MB / 491.1 MB, free: 9.535 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4072, allocations: 0 / 491.1 MB, free: 9.535 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001489/0.4087, allocations: 0.8193 MB / 491.9 MB, free: 8.688 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005719/0.4092, allocations: 67.11 kB / 492 MB, free: 8.621 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/0.4228, allocations: 7.56 MB / 499.6 MB, free: 0.7461 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007481/0.4235, allocations: 1.009 MB / 0.4888 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005516/0.4241, allocations: 142.6 kB / 0.489 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005088/0.4246, allocations: 351.3 kB / 0.4893 GB, free: 15.22 MB / 414.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4246, allocations: 0 / 0.4893 GB, free: 15.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0817/0.5063, allocations: 18.56 MB / 0.5074 GB, free: 12.84 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.68/25.19, allocations: 3.938 kB / 0.5074 GB, free: 12.84 MB / 430.1 MB " [Timeout remaining time 635] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.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: 27.61215394595638]