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.00131/0.00131, allocations: 115.6 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.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.001474/0.001474, allocations: 209.7 kB / 23.74 MB, free: 4.672 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.499/1.499, 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.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_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_1_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.001619/0.001619, allocations: 47.92 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.301, allocations: 53.36 MB / 431.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00742/0.3084, allocations: 5.109 MB / 436.3 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004208/0.3126, allocations: 2.187 MB / 438.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004262/0.3131, allocations: 16 kB / 438.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003336/0.3164, allocations: 1.413 MB / 439.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001385/0.3178, allocations: 425.4 kB / 440.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0029/0.3207, allocations: 1.231 MB / 441.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001311/0.322, allocations: 0.7355 MB / 442.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001052/0.323, allocations: 0.567 MB / 442.8 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005775/0.3236, allocations: 350.8 kB / 443.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005446/0.3242, allocations: 426.3 kB / 443.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.727e-05/0.3243, allocations: 64 kB / 443.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00102/0.3253, allocations: 415.6 kB / 444 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001534/0.3254, allocations: 163.4 kB / 444.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003578/0.3258, allocations: 382.2 kB / 444.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001653/0.3274, allocations: 1.207 MB / 445.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3275, allocations: 0 / 445.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.3275, allocations: 0 / 445.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.458e-05/0.3275, allocations: 0 / 445.8 MB, free: 8.152 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.004426/0.3319, allocations: 1.402 MB / 447.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.332, allocations: 11.97 kB / 447.2 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001707/0.3321, allocations: 139.4 kB / 447.3 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002471/0.3346, allocations: 360.1 kB / 447.7 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002964/0.3349, allocations: 198.3 kB / 447.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.244e-05/0.335, allocations: 66.38 kB / 447.9 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001637/0.3351, allocations: 80.38 kB / 448 MB, free: 5.844 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001737/0.3369, allocations: 0.8797 MB / 448.9 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.217e-05/0.3369, allocations: 3.953 kB / 448.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.742e-05/0.337, allocations: 36 kB / 448.9 MB, free: 4.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.986e-05/0.337, allocations: 20 kB / 449 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001748/0.3387, allocations: 0.7886 MB / 449.8 MB, free: 4.102 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004767/0.3435, allocations: 2.775 MB / 452.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.3447, allocations: 0.5153 MB / 453 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005189/0.3452, allocations: 214.2 kB / 453.3 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001093/0.3453, allocations: 36.41 kB / 453.3 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.639e-05/0.3453, allocations: 39.06 kB / 453.3 MB, free: 356 kB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.815e-06/0.3453, allocations: 0 / 453.3 MB, free: 356 kB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007412/0.3527, allocations: 2.171 MB / 455.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.759e-05/0.3528, allocations: 81.61 kB / 455.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003605/0.3532, allocations: 304.4 kB / 455.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.511e-05/0.3532, allocations: 37.7 kB / 455.9 MB, free: 13.69 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002589/0.3535, allocations: 363.9 kB / 456.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/0.3537, allocations: 226.1 kB / 456.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002266/0.3539, allocations: 150.5 kB / 456.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.3541, allocations: 354.7 kB / 457 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007142/0.3548, allocations: 261.8 kB / 457.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009299/0.3557, allocations: 0.5004 MB / 457.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001702/0.3574, allocations: 0.8088 MB / 458.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.3574, allocations: 4 kB / 458.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002078/0.3595, allocations: 0.8967 MB / 459.4 MB, free: 9.914 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/0.3595, allocations: 10.66 kB / 459.5 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.001e-05/0.3595, allocations: 16.39 kB / 459.5 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002659/0.3598, allocations: 73.67 kB / 459.5 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008422/0.3606, allocations: 195.7 kB / 459.7 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002256/0.3629, allocations: 2.661 MB / 462.4 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006796/0.3636, allocations: 67.94 kB / 462.5 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.835e-05/0.3637, allocations: 39.98 kB / 462.5 MB, free: 6.621 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.000384/0.3641, allocations: 209.6 kB / 462.7 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.3642, allocations: 47.66 kB / 462.8 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002021/0.3662, allocations: 0.7219 MB / 463.5 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.3662, allocations: 8 kB / 463.5 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3662, allocations: 0 / 463.5 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.3662, allocations: 3.984 kB / 463.5 MB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002938/0.3692, allocations: 1.376 MB / 464.9 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3692, allocations: 4 kB / 464.9 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006665/0.3698, allocations: 131.8 kB / 465 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000195/0.37, allocations: 61.67 kB / 465.1 MB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.911e-05/0.3701, allocations: 23.92 kB / 465.1 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002164/0.3722, allocations: 2.653 MB / 467.7 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3722, allocations: 4.125 kB / 467.7 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002483/0.3747, allocations: 1.074 MB / 468.8 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002234/0.3749, allocations: 83.67 kB / 468.9 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.033e-05/0.375, allocations: 12 kB / 468.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004892/0.3755, allocations: 51.94 kB / 469 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.3756, allocations: 44.41 kB / 469 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.663e-05/0.3757, allocations: 20.06 kB / 469 MB, free: 15.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002356/0.3759, allocations: 211.1 kB / 469.2 MB, free: 15.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3759, allocations: 4 kB / 469.2 MB, free: 15.56 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007386/0.3766, allocations: 172 kB / 469.4 MB, free: 15.39 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.003118/0.3797, allocations: 1.68 MB / 471.1 MB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002139/0.3819, allocations: 0.8652 MB / 471.9 MB, free: 12.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.3819, allocations: 0 / 471.9 MB, free: 12.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.3829, allocations: 0.5312 MB / 472.5 MB, free: 12.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004889/0.3834, allocations: 48.58 kB / 472.5 MB, free: 12.19 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009723/0.3931, allocations: 5.083 MB / 477.6 MB, free: 6.812 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006427/0.3938, allocations: 0.8771 MB / 478.5 MB, free: 5.914 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003827/0.3942, allocations: 88.52 kB / 478.6 MB, free: 5.824 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003801/0.3946, allocations: 223.3 kB / 478.8 MB, free: 5.605 MB / 382.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3946, allocations: 0 / 478.8 MB, free: 5.605 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05607/0.4506, allocations: 11.88 MB / 490.7 MB, free: 9.891 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/15.35, allocations: 2.578 kB / 490.7 MB, free: 9.891 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: 17.836879933951423]