Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 109.5 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 184.5 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 47.92 kB / 370.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2362, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.007371/0.2436, allocations: 5.096 MB / 427.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004112/0.2477, allocations: 2.109 MB / 429.9 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005786/0.2483, allocations: 16 kB / 429.9 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003305/0.2516, allocations: 1.415 MB / 431.3 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001599/0.2532, allocations: 0.5811 MB / 431.9 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002267/0.2555, allocations: 1.069 MB / 432.9 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001188/0.2567, allocations: 0.7433 MB / 433.7 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001061/0.2577, allocations: 0.5786 MB / 434.3 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005312/0.2583, allocations: 338.8 kB / 434.6 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005884/0.2589, allocations: 426.3 kB / 435 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001556/0.259, allocations: 68 kB / 435.1 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008689/0.2599, allocations: 395.6 kB / 435.5 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.26, allocations: 163.4 kB / 435.6 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004309/0.2605, allocations: 378.1 kB / 436 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001702/0.2622, allocations: 1.192 MB / 437.2 MB, free: 8 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.2622, allocations: 8 kB / 437.2 MB, free: 0 / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-05/0.2622, allocations: 48 / 437.2 MB, free: 16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.534e-05/0.2622, allocations: 4 kB / 437.2 MB, free: 15.99 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.004563/0.2668, allocations: 1.386 MB / 438.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.2668, allocations: 8.031 kB / 438.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001816/0.267, allocations: 131.4 kB / 438.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002484/0.2695, allocations: 388.1 kB / 439.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003055/0.2698, allocations: 202.9 kB / 439.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.629e-05/0.2699, allocations: 62.38 kB / 439.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000173/0.2701, allocations: 84.38 kB / 439.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.2718, allocations: 0.8759 MB / 440.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.446e-05/0.2719, allocations: 4 kB / 440.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.79e-05/0.272, allocations: 32 kB / 440.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.987e-05/0.272, allocations: 23.98 kB / 440.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/0.2738, allocations: 0.7964 MB / 441.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004741/0.2786, allocations: 2.759 MB / 443.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.2797, allocations: 0.5284 MB / 444.5 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005384/0.2802, allocations: 222.2 kB / 444.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.315e-05/0.2803, allocations: 16.48 kB / 444.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/0.2803, allocations: 39.06 kB / 444.7 MB, free: 8.199 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.304e-06/0.2803, allocations: 0 / 444.7 MB, free: 8.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007912/0.2882, allocations: 2.198 MB / 446.9 MB, free: 5.957 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.518e-05/0.2883, allocations: 85.61 kB / 447 MB, free: 5.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000349/0.2887, allocations: 308.5 kB / 447.3 MB, free: 5.551 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.558e-05/0.2887, allocations: 33.7 kB / 447.3 MB, free: 5.512 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/0.289, allocations: 367.9 kB / 447.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001929/0.2891, allocations: 226.1 kB / 447.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002258/0.2894, allocations: 146.5 kB / 448.1 MB, free: 4.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.2895, allocations: 358.7 kB / 448.4 MB, free: 4.414 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008134/0.2903, allocations: 273.8 kB / 448.7 MB, free: 4.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.2913, allocations: 0.5013 MB / 449.2 MB, free: 3.539 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001791/0.2931, allocations: 0.8088 MB / 450 MB, free: 2.633 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.2931, allocations: 4 kB / 450 MB, free: 2.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00217/0.2953, allocations: 0.9011 MB / 450.9 MB, free: 1.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.2953, allocations: 8 kB / 450.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/0.2954, allocations: 11.94 kB / 450.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002453/0.2956, allocations: 73.7 kB / 451 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008784/0.2965, allocations: 203.7 kB / 451.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002348/0.2988, allocations: 2.666 MB / 453.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007014/0.2995, allocations: 63.89 kB / 453.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-05/0.2996, allocations: 39.98 kB / 454 MB, free: 14.41 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.0003568/0.3, allocations: 217.7 kB / 454.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.3001, allocations: 43.7 kB / 454.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002008/0.3021, allocations: 0.7413 MB / 454.9 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.3021, allocations: 4 kB / 455 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3021, allocations: 11.94 kB / 455 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.3021, allocations: 0 / 455 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002841/0.3049, allocations: 1.391 MB / 456.4 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3049, allocations: 0 / 456.4 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000681/0.3056, allocations: 135.8 kB / 456.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001709/0.3058, allocations: 57.67 kB / 456.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.98e-05/0.3058, allocations: 19.98 kB / 456.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002056/0.3079, allocations: 2.645 MB / 459.2 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3079, allocations: 0 / 459.2 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002638/0.3105, allocations: 1.097 MB / 460.3 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002169/0.3107, allocations: 79.72 kB / 460.4 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.415e-05/0.3108, allocations: 15.95 kB / 460.4 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005164/0.3113, allocations: 48.02 kB / 460.4 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.3115, allocations: 56.34 kB / 460.5 MB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.815e-05/0.3115, allocations: 19.98 kB / 460.5 MB, free: 7.516 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002314/0.3117, allocations: 207.1 kB / 460.7 MB, free: 7.309 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3117, allocations: 0 / 460.7 MB, free: 7.309 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007158/0.3124, allocations: 179.9 kB / 460.9 MB, free: 7.133 MB / 366.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.003118/0.3156, allocations: 1.686 MB / 462.6 MB, free: 5.414 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002115/0.3177, allocations: 0.8885 MB / 463.5 MB, free: 4.508 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3177, allocations: 4 kB / 463.5 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.3187, allocations: 0.5235 MB / 464 MB, free: 3.957 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000466/0.3192, allocations: 44.58 kB / 464 MB, free: 3.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009752/0.329, allocations: 5.157 MB / 469.2 MB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005958/0.3295, allocations: 0.8848 MB / 470.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003925/0.3299, allocations: 100.5 kB / 470.2 MB, free: 13.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003603/0.3303, allocations: 231.3 kB / 470.4 MB, free: 13.21 MB / 382.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3303, allocations: 0 / 470.4 MB, free: 13.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05063/0.3809, allocations: 11.81 MB / 482.2 MB, free: 1.578 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.65/15.03, allocations: 7.312 kB / 482.2 MB, free: 1.574 MB / 382.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 17.39363832003437]