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.001665/0.001665, allocations: 107.5 kB / 20.43 MB, free: 1.066 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.001944/0.001944, allocations: 187.1 kB / 23.7 MB, free: 4.188 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.432/1.432, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.001898/0.001898, allocations: 47.92 kB / 370.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2395, allocations: 52.19 MB / 422.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00581/0.2454, allocations: 4.556 MB / 427.1 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002919/0.2483, allocations: 1.946 MB / 429.1 MB, free: 7.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002034/0.2485, allocations: 16 kB / 429.1 MB, free: 7.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002796/0.2513, allocations: 1.301 MB / 430.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00109/0.2524, allocations: 0.5476 MB / 431 MB, free: 6.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001919/0.2543, allocations: 1 MB / 432 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008583/0.2551, allocations: 0.7431 MB / 432.7 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008608/0.256, allocations: 0.5692 MB / 433.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004741/0.2565, allocations: 342.8 kB / 433.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005513/0.257, allocations: 378.3 kB / 434 MB, free: 3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001179/0.2571, allocations: 68 kB / 434 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007223/0.2579, allocations: 367.6 kB / 434.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.258, allocations: 163.4 kB / 434.6 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003453/0.2584, allocations: 306.6 kB / 434.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001516/0.2599, allocations: 1.195 MB / 436 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2599, allocations: 0 / 436 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2599, allocations: 7.938 kB / 436.1 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.174e-05/0.2599, allocations: 0 / 436.1 MB, free: 0.9062 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.00447/0.2644, allocations: 1.39 MB / 437.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.2644, allocations: 19.97 kB / 437.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001772/0.2646, allocations: 127.4 kB / 437.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002488/0.2671, allocations: 384.1 kB / 438 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/0.2673, allocations: 198.2 kB / 438.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.871e-05/0.2674, allocations: 66.38 kB / 438.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001623/0.2676, allocations: 80.38 kB / 438.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/0.2693, allocations: 0.901 MB / 439.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.2693, allocations: 4 kB / 439.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.368e-05/0.2694, allocations: 36 kB / 439.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.987e-05/0.2694, allocations: 20 kB / 439.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/0.2712, allocations: 0.7925 MB / 440.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00426/0.2755, allocations: 2.394 MB / 442.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.2766, allocations: 0.5055 MB / 443 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005267/0.2771, allocations: 226.2 kB / 443.2 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.985e-05/0.2772, allocations: 12.48 kB / 443.2 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.2772, allocations: 47.06 kB / 443.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.765e-06/0.2772, allocations: 0 / 443.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.008022/0.2852, allocations: 2.198 MB / 445.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.664e-05/0.2853, allocations: 81.61 kB / 445.5 MB, free: 7.156 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000366/0.2857, allocations: 320.2 kB / 445.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.355e-05/0.2857, allocations: 37.7 kB / 445.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000244/0.286, allocations: 371.9 kB / 446.2 MB, free: 6.426 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001741/0.2861, allocations: 222.1 kB / 446.4 MB, free: 6.207 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000226/0.2864, allocations: 150.6 kB / 446.6 MB, free: 6.055 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.2865, allocations: 350.7 kB / 446.9 MB, free: 5.703 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007797/0.2873, allocations: 277.8 kB / 447.2 MB, free: 5.434 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009849/0.2883, allocations: 0.5303 MB / 447.7 MB, free: 4.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001789/0.2901, allocations: 0.8088 MB / 448.5 MB, free: 3.887 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.2901, allocations: 0 / 448.5 MB, free: 3.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002213/0.2923, allocations: 0.9088 MB / 449.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.2923, allocations: 8 kB / 449.5 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.2923, allocations: 15.94 kB / 449.5 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002498/0.2926, allocations: 69.67 kB / 449.5 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008578/0.2934, allocations: 199.7 kB / 449.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002219/0.2957, allocations: 2.658 MB / 452.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007205/0.2964, allocations: 56.08 kB / 452.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.457e-05/0.2964, allocations: 39.98 kB / 452.5 MB, free: 15.69 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.000341/0.2968, allocations: 217.5 kB / 452.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.688e-05/0.2969, allocations: 47.66 kB / 452.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002005/0.2989, allocations: 0.7414 MB / 453.5 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.2989, allocations: 8 kB / 453.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2989, allocations: 0 / 453.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.2989, allocations: 7.922 kB / 453.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002784/0.3017, allocations: 1.305 MB / 454.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.3017, allocations: 11.94 kB / 454.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006807/0.3024, allocations: 135.8 kB / 455 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001978/0.3026, allocations: 61.67 kB / 455 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.181e-05/0.3026, allocations: 19.98 kB / 455 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002092/0.3047, allocations: 2.642 MB / 457.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3047, allocations: 0 / 457.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002685/0.3074, allocations: 1.093 MB / 458.8 MB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002482/0.3076, allocations: 79.73 kB / 458.8 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.883e-05/0.3077, allocations: 12 kB / 458.9 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005111/0.3082, allocations: 52 kB / 458.9 MB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.3084, allocations: 52.41 kB / 459 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.055e-05/0.3084, allocations: 19.98 kB / 459 MB, free: 8.859 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002296/0.3086, allocations: 203.1 kB / 459.2 MB, free: 8.656 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3086, allocations: 0 / 459.2 MB, free: 8.656 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007049/0.3093, allocations: 176 kB / 459.4 MB, free: 8.484 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.003213/0.3125, allocations: 1.696 MB / 461 MB, free: 6.754 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002074/0.3146, allocations: 0.8846 MB / 461.9 MB, free: 5.852 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3146, allocations: 0 / 461.9 MB, free: 5.852 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.3157, allocations: 0.5235 MB / 462.5 MB, free: 5.305 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004623/0.3161, allocations: 52.56 kB / 462.5 MB, free: 5.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009135/0.3252, allocations: 5.149 MB / 467.7 MB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.3256, allocations: 290.4 kB / 467.9 MB, free: 15.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004224/0.326, allocations: 92.52 kB / 468 MB, free: 15.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003438/0.3263, allocations: 231.3 kB / 468.3 MB, free: 15.17 MB / 382.1 MB Notification: Performance of SimCode: time 1.233e-06/0.3263, allocations: 0 / 468.3 MB, free: 15.17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06473/0.3911, allocations: 12.03 MB / 480.3 MB, free: 3.367 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/15.45, allocations: 3.938 kB / 480.3 MB, free: 3.363 MB / 382.1 MB " [Timeout remaining time 644] (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: 18.128669388592243]