Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.001483/0.001483, allocations: 119.6 kB / 20.44 MB, free: 1.301 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.001646/0.001646, allocations: 214.5 kB / 23.74 MB, free: 4.527 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.524/1.524, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 52 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2829, allocations: 53.36 MB / 431.1 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004794/0.2877, allocations: 2.866 MB / 434 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.2894, allocations: 0.8021 MB / 434.8 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.2896, allocations: 4 kB / 434.8 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002538/0.2898, allocations: 59.44 kB / 434.9 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002907/0.2901, allocations: 99.19 kB / 435 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.2904, allocations: 111.8 kB / 435.1 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004609/0.2909, allocations: 386.6 kB / 435.5 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002304/0.2911, allocations: 103.3 kB / 435.6 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003472/0.2915, allocations: 155.4 kB / 435.7 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.2917, allocations: 175.2 kB / 435.9 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.151e-05/0.2918, allocations: 32 kB / 435.9 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.535e-05/0.2918, allocations: 36 kB / 435.9 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.169e-05/0.2919, allocations: 75.7 kB / 436 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001783/0.2921, allocations: 179.1 kB / 436.2 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004797/0.2926, allocations: 390.8 kB / 436.6 MB, free: 1.516 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.2926, allocations: 4 kB / 436.6 MB, free: 1.512 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2926, allocations: 3.938 kB / 436.6 MB, free: 1.508 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.2926, allocations: 0 / 436.6 MB, free: 1.508 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.001249/0.2938, allocations: 0.5753 MB / 437.2 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.2939, allocations: 8.031 kB / 437.2 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000103/0.294, allocations: 74.66 kB / 437.2 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.381e-05/0.2941, allocations: 40.7 kB / 437.3 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004122/0.2945, allocations: 214.8 kB / 437.5 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.612e-05/0.2945, allocations: 29.03 kB / 437.5 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.995e-05/0.2946, allocations: 32.36 kB / 437.5 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006077/0.2952, allocations: 290.2 kB / 437.8 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.2952, allocations: 3.938 kB / 437.8 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.111e-05/0.2952, allocations: 12 kB / 437.8 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.2952, allocations: 8 kB / 437.9 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006397/0.2959, allocations: 250.5 kB / 438.1 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001964/0.2978, allocations: 1.041 MB / 439.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004186/0.2982, allocations: 158.4 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001857/0.2984, allocations: 60.83 kB / 439.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.586e-05/0.2985, allocations: 4 kB / 439.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.2985, allocations: 34.56 kB / 439.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.463e-06/0.2985, allocations: 4 kB / 439.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002113/0.3006, allocations: 0.5948 MB / 440 MB, free: 13.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.3007, allocations: 59.41 kB / 440 MB, free: 13.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003626/0.301, allocations: 269.7 kB / 440.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.909e-05/0.3011, allocations: 29.7 kB / 440.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.3012, allocations: 228.1 kB / 440.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.219e-05/0.3013, allocations: 79.31 kB / 440.6 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.3014, allocations: 69.44 kB / 440.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.3016, allocations: 334.8 kB / 441 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002841/0.3019, allocations: 99.92 kB / 441.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003685/0.3023, allocations: 200.1 kB / 441.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006435/0.3029, allocations: 301.1 kB / 441.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3029, allocations: 4 kB / 441.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008821/0.3038, allocations: 389.4 kB / 442 MB, free: 11.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.3038, allocations: 8 kB / 442 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3038, allocations: 0 / 442 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002845/0.3041, allocations: 61.77 kB / 442.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003343/0.3045, allocations: 79.83 kB / 442.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002394/0.3068, allocations: 2.63 MB / 444.8 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002645/0.3071, allocations: 27.88 kB / 444.8 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.3071, allocations: 12 kB / 444.8 MB, free: 8.691 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.0001901/0.3073, allocations: 153.7 kB / 445 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.447e-05/0.3074, allocations: 27.92 kB / 445 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.259e-05/0.3075, allocations: 30.28 kB / 445 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.3075, allocations: 3.984 kB / 445 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3075, allocations: 4 kB / 445 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3075, allocations: 0 / 445 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004104/0.3079, allocations: 304.5 kB / 445.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3079, allocations: 0 / 445.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002081/0.3081, allocations: 39.97 kB / 445.4 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000162/0.3083, allocations: 65.73 kB / 445.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.3083, allocations: 4 kB / 445.4 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002263/0.3105, allocations: 2.622 MB / 448.1 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3105, allocations: 7.922 kB / 448.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007617/0.3113, allocations: 378.7 kB / 448.4 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.724e-05/0.3113, allocations: 23.86 kB / 448.5 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.275e-05/0.3114, allocations: 4 kB / 448.5 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.3116, allocations: 19.97 kB / 448.5 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.618e-05/0.3117, allocations: 23.91 kB / 448.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.3117, allocations: 4 kB / 448.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000206/0.3119, allocations: 193.2 kB / 448.7 MB, free: 4.496 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3119, allocations: 0 / 448.7 MB, free: 4.496 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003923/0.3123, allocations: 68 kB / 448.8 MB, free: 4.43 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.001127/0.3134, allocations: 0.9064 MB / 449.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009992/0.3144, allocations: 473 kB / 450.1 MB, free: 3.004 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3144, allocations: 3.938 kB / 450.1 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005388/0.3149, allocations: 344.6 kB / 450.5 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.3153, allocations: 36.48 kB / 450.5 MB, free: 2.605 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004692/0.32, allocations: 2.949 MB / 453.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004679/0.3205, allocations: 0.7752 MB / 454.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001239/0.3206, allocations: 30.27 kB / 454.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001531/0.3207, allocations: 95.41 kB / 454.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of SimCode: time 1.333e-06/0.3207, allocations: 0 / 454.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04108/0.3618, allocations: 5.884 MB / 460.2 MB, free: 8.824 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.33, allocations: 6.812 kB / 460.2 MB, free: 8.82 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv","/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_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable magFluxSensor.Phi in file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.851593295999919]