Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.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.001217/0.001217, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001461/0.001461, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.407/1.407, allocations: 230.6 MB / 258.3 MB, free: 8 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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 47.94 kB / 378.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2444, allocations: 53.36 MB / 431.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006447/0.2509, allocations: 5.107 MB / 437 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003453/0.2543, allocations: 2.191 MB / 439.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002343/0.2545, allocations: 16 kB / 439.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003135/0.2577, allocations: 1.419 MB / 440.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009753/0.2587, allocations: 417.4 kB / 441.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002122/0.2608, allocations: 1.221 MB / 442.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007963/0.2616, allocations: 0.7278 MB / 443 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008097/0.2624, allocations: 0.5789 MB / 443.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004134/0.2628, allocations: 338.8 kB / 443.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004773/0.2633, allocations: 426.3 kB / 444.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.943e-05/0.2634, allocations: 68 kB / 444.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007085/0.2641, allocations: 415.6 kB / 444.8 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.2642, allocations: 163.4 kB / 445 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003113/0.2645, allocations: 382.1 kB / 445.4 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001295/0.2658, allocations: 1.207 MB / 446.6 MB, free: 8.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2658, allocations: 0 / 446.6 MB, free: 8.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2658, allocations: 0 / 446.6 MB, free: 8.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.2658, allocations: 0 / 446.6 MB, free: 8.16 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004082/0.2699, allocations: 1.41 MB / 448 MB, free: 6.715 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.2699, allocations: 8.031 kB / 448 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.114e-05/0.27, allocations: 22.19 kB / 448 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001424/0.2701, allocations: 131.4 kB / 448.1 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002462/0.2726, allocations: 372.1 kB / 448.5 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002247/0.2728, allocations: 195.2 kB / 448.7 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.969e-05/0.2729, allocations: 62.38 kB / 448.7 MB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.273, allocations: 88.38 kB / 448.8 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.2746, allocations: 0.8679 MB / 449.7 MB, free: 4.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.302e-05/0.2746, allocations: 19.86 kB / 449.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.69e-05/0.2747, allocations: 32 kB / 449.8 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.2747, allocations: 20 kB / 449.8 MB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001724/0.2764, allocations: 0.7886 MB / 450.6 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004371/0.2808, allocations: 2.775 MB / 453.3 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.2819, allocations: 0.5153 MB / 453.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005076/0.2824, allocations: 218.2 kB / 454.1 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.938e-05/0.2825, allocations: 24.47 kB / 454.1 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.2825, allocations: 43.06 kB / 454.1 MB, free: 340 kB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.235e-06/0.2825, allocations: 0 / 454.1 MB, free: 340 kB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007019/0.2895, allocations: 2.167 MB / 456.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/0.2896, allocations: 85.61 kB / 456.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003554/0.29, allocations: 308.4 kB / 456.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.97e-05/0.29, allocations: 41.64 kB / 456.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000261/0.2903, allocations: 367.9 kB / 457.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001854/0.2905, allocations: 222 kB / 457.3 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002357/0.2907, allocations: 146.6 kB / 457.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.2909, allocations: 354.7 kB / 457.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007276/0.2916, allocations: 269.8 kB / 458.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009512/0.2925, allocations: 0.5013 MB / 458.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001754/0.2943, allocations: 0.8049 MB / 459.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.2943, allocations: 8 kB / 459.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002063/0.2964, allocations: 0.8968 MB / 460.3 MB, free: 9.887 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.2964, allocations: 11.94 kB / 460.3 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/0.2964, allocations: 8 kB / 460.3 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000238/0.2966, allocations: 66.05 kB / 460.3 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008102/0.2975, allocations: 195.7 kB / 460.5 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002226/0.2997, allocations: 2.665 MB / 463.2 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006211/0.3003, allocations: 68 kB / 463.3 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-05/0.3004, allocations: 35.98 kB / 463.3 MB, free: 6.605 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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.000344/0.3007, allocations: 213.6 kB / 463.5 MB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.537e-05/0.3008, allocations: 47.66 kB / 463.6 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001904/0.3027, allocations: 0.7298 MB / 464.3 MB, free: 5.602 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.3027, allocations: 4 kB / 464.3 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3027, allocations: 4 kB / 464.3 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.978e-06/0.3027, allocations: 7.922 kB / 464.3 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002654/0.3054, allocations: 1.364 MB / 465.7 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.3054, allocations: 0 / 465.7 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000647/0.306, allocations: 139.8 kB / 465.8 MB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001673/0.3062, allocations: 53.67 kB / 465.9 MB, free: 3.973 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.039e-05/0.3062, allocations: 19.98 kB / 465.9 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002036/0.3083, allocations: 2.646 MB / 468.5 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3083, allocations: 128 / 468.5 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002513/0.3108, allocations: 1.086 MB / 469.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002105/0.311, allocations: 91.64 kB / 469.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.586e-05/0.3111, allocations: 12 kB / 469.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004617/0.3115, allocations: 47.89 kB / 469.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.3116, allocations: 52.39 kB / 469.8 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.796e-05/0.3117, allocations: 16 kB / 469.8 MB, free: 15.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002252/0.3119, allocations: 211.1 kB / 470 MB, free: 15.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3119, allocations: 0 / 470 MB, free: 15.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000729/0.3126, allocations: 179.9 kB / 470.2 MB, free: 15.37 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (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,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.002989/0.3156, allocations: 1.676 MB / 471.9 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002011/0.3176, allocations: 0.8652 MB / 472.7 MB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3176, allocations: 0 / 472.7 MB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.3186, allocations: 0.5272 MB / 473.3 MB, free: 12.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004873/0.3191, allocations: 54.7 kB / 473.3 MB, free: 12.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009542/0.3287, allocations: 5.085 MB / 478.4 MB, free: 6.793 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004997/0.3292, allocations: 0.8771 MB / 479.3 MB, free: 5.891 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003599/0.3295, allocations: 92.5 kB / 479.4 MB, free: 5.801 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003468/0.3299, allocations: 227.3 kB / 479.6 MB, free: 5.578 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3299, allocations: 0 / 479.6 MB, free: 5.578 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.43/0.7599, allocations: 11.91 MB / 491.5 MB, free: 9.848 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.5/15.26, allocations: 7.938 kB / 491.5 MB, free: 9.844 MB / 398.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.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: 18.565847694000695]