Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001601/0.001601, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001722/0.001722, allocations: 204.9 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 230.5 MB / 257.4 MB, free: 7.727 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002982/0.002982, allocations: 63.91 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3074, allocations: 53.41 MB / 431.1 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004563/0.312, allocations: 2.64 MB / 433.8 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001557/0.3135, allocations: 0.7516 MB / 434.5 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002227/0.3138, allocations: 7.938 kB / 434.5 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002433/0.314, allocations: 59.44 kB / 434.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00033/0.3143, allocations: 99.23 kB / 434.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003096/0.3146, allocations: 115.8 kB / 434.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004588/0.3151, allocations: 397.4 kB / 435.2 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002191/0.3153, allocations: 93.02 kB / 435.3 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003219/0.3156, allocations: 155.4 kB / 435.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/0.3159, allocations: 155.2 kB / 435.6 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.869e-05/0.316, allocations: 36 kB / 435.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.834e-05/0.316, allocations: 32 kB / 435.7 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.891e-05/0.3161, allocations: 71.7 kB / 435.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.3162, allocations: 151.3 kB / 435.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004519/0.3167, allocations: 398.3 kB / 436.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3167, allocations: 4 kB / 436.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.3167, allocations: 0 / 436.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.3167, allocations: 0 / 436.3 MB, free: 1.277 MB / 334.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.3178, allocations: 0.5675 MB / 436.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.3179, allocations: 19.98 kB / 436.9 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.259e-05/0.318, allocations: 70.66 kB / 436.9 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.342e-05/0.318, allocations: 40.7 kB / 437 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003833/0.3184, allocations: 214.8 kB / 437.2 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/0.3184, allocations: 21.03 kB / 437.2 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.145e-05/0.3185, allocations: 36.38 kB / 437.2 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006367/0.3191, allocations: 290.2 kB / 437.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.3191, allocations: 4 kB / 437.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.544e-05/0.3192, allocations: 12 kB / 437.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.3192, allocations: 8 kB / 437.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006333/0.3198, allocations: 250.4 kB / 437.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.3216, allocations: 0.9244 MB / 438.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003877/0.322, allocations: 142.5 kB / 438.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001864/0.3221, allocations: 68.81 kB / 438.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.273e-05/0.3222, allocations: 7.938 kB / 438.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.3222, allocations: 30.56 kB / 439 MB, free: 14.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.362e-06/0.3222, allocations: 0 / 439 MB, free: 14.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002084/0.3243, allocations: 0.598 MB / 439.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.913e-05/0.3243, allocations: 51.41 kB / 439.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003387/0.3247, allocations: 285.6 kB / 439.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.3247, allocations: 29.7 kB / 439.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000174/0.3249, allocations: 240 kB / 440.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.705e-05/0.3249, allocations: 79.33 kB / 440.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.325, allocations: 65.44 kB / 440.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.3252, allocations: 338.8 kB / 440.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002963/0.3255, allocations: 87.94 kB / 440.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004136/0.3259, allocations: 192.2 kB / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006728/0.3266, allocations: 301.1 kB / 441.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3266, allocations: 0 / 441.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009406/0.3275, allocations: 397.1 kB / 441.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.3275, allocations: 7.938 kB / 441.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.3275, allocations: 4 kB / 441.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000247/0.3278, allocations: 65.95 kB / 441.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003349/0.3281, allocations: 75.89 kB / 441.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002326/0.3305, allocations: 2.618 MB / 444.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002934/0.3307, allocations: 32.03 kB / 444.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.488e-05/0.3308, allocations: 12 kB / 444.4 MB, free: 8.605 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.0001706/0.3309, allocations: 149.7 kB / 444.5 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.777e-05/0.331, allocations: 27.81 kB / 444.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.362e-05/0.3311, allocations: 34.27 kB / 444.6 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.3311, allocations: 4 kB / 444.6 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3311, allocations: 0 / 444.6 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.3311, allocations: 4 kB / 444.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003823/0.3315, allocations: 280.5 kB / 444.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3315, allocations: 0 / 444.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002226/0.3317, allocations: 47.89 kB / 444.9 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001591/0.3319, allocations: 49.69 kB / 445 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.3319, allocations: 12 kB / 445 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00218/0.334, allocations: 2.61 MB / 447.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3341, allocations: 0 / 447.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007884/0.3348, allocations: 384.9 kB / 448 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.913e-05/0.3349, allocations: 23.81 kB / 448 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/0.3349, allocations: 4 kB / 448 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.3351, allocations: 15.97 kB / 448 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.846e-05/0.3352, allocations: 19.97 kB / 448 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.3352, allocations: 8 kB / 448 MB, free: 4.641 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002055/0.3354, allocations: 193.1 kB / 448.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3354, allocations: 4 kB / 448.2 MB, free: 4.445 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004031/0.3358, allocations: 68 kB / 448.3 MB, free: 4.379 MB / 350.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.001097/0.3369, allocations: 0.9122 MB / 449.2 MB, free: 3.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009793/0.3379, allocations: 465.2 kB / 449.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3379, allocations: 0.8125 kB / 449.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005538/0.3385, allocations: 349.2 kB / 450 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003528/0.3388, allocations: 31.7 kB / 450 MB, free: 2.562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004565/0.3434, allocations: 2.962 MB / 453 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001741/0.3435, allocations: 164.8 kB / 453.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001361/0.3437, allocations: 30.27 kB / 453.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001617/0.3438, allocations: 99.41 kB / 453.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3438, allocations: 4 kB / 453.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04886/0.3927, allocations: 6.247 MB / 459.5 MB, free: 9.004 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.16, allocations: 8.922 kB / 459.5 MB, free: 8.996 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 14.618154857773334]