Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.00141/0.00141, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001554/0.001554, allocations: 187.1 kB / 23.72 MB, free: 4.684 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.447/1.447, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 47.92 kB / 370.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.3535, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004313/0.3578, allocations: 2.844 MB / 425.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.3591, allocations: 0.7477 MB / 426.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.3593, allocations: 8 kB / 426.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002319/0.3595, allocations: 67.42 kB / 426.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002698/0.3598, allocations: 99.17 kB / 426.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002753/0.3601, allocations: 99.86 kB / 426.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000437/0.3605, allocations: 394.5 kB / 426.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.3607, allocations: 91.36 kB / 427 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002686/0.361, allocations: 163.4 kB / 427.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002296/0.3612, allocations: 171.2 kB / 427.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.579e-05/0.3613, allocations: 32 kB / 427.3 MB, free: 9.887 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.412e-05/0.3613, allocations: 32 kB / 427.4 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.908e-05/0.3614, allocations: 71.77 kB / 427.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.3616, allocations: 179.1 kB / 427.6 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004385/0.362, allocations: 394.7 kB / 428 MB, free: 9.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.362, allocations: 0 / 428 MB, free: 9.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.362, allocations: 0 / 428 MB, free: 9.227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.362, allocations: 4 kB / 428 MB, free: 9.223 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.001189/0.3632, allocations: 0.5753 MB / 428.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.3632, allocations: 8.031 kB / 428.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.023e-05/0.3633, allocations: 74.72 kB / 428.6 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.347e-05/0.3634, allocations: 36.7 kB / 428.7 MB, free: 8.492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004025/0.3638, allocations: 213.9 kB / 428.9 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.403e-05/0.3638, allocations: 25.03 kB / 428.9 MB, free: 8.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.57e-05/0.3639, allocations: 32.38 kB / 428.9 MB, free: 8.199 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005929/0.3645, allocations: 286.2 kB / 429.2 MB, free: 7.918 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.3645, allocations: 0 / 429.2 MB, free: 7.918 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.706e-05/0.3645, allocations: 16 kB / 429.2 MB, free: 7.902 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.3645, allocations: 8 kB / 429.2 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006139/0.3651, allocations: 254.4 kB / 429.5 MB, free: 7.648 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001783/0.3669, allocations: 1.045 MB / 430.5 MB, free: 6.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000381/0.3673, allocations: 146.5 kB / 430.7 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.3675, allocations: 68.73 kB / 430.7 MB, free: 6.289 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.3675, allocations: 0 / 430.7 MB, free: 6.289 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.3676, allocations: 38.56 kB / 430.8 MB, free: 6.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.452e-06/0.3676, allocations: 0 / 430.8 MB, free: 6.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.002035/0.3696, allocations: 0.5927 MB / 431.4 MB, free: 5.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.3696, allocations: 55.41 kB / 431.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002958/0.3699, allocations: 269.7 kB / 431.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/0.37, allocations: 29.7 kB / 431.7 MB, free: 5.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.3701, allocations: 228.1 kB / 431.9 MB, free: 5.035 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.431e-05/0.3702, allocations: 79.27 kB / 432 MB, free: 4.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/0.3703, allocations: 69.66 kB / 432.1 MB, free: 4.883 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.3705, allocations: 338.8 kB / 432.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002806/0.3707, allocations: 87.94 kB / 432.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003509/0.3711, allocations: 192.2 kB / 432.7 MB, free: 4.223 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006153/0.3717, allocations: 302.3 kB / 433 MB, free: 3.887 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3717, allocations: 0 / 433 MB, free: 3.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008542/0.3726, allocations: 393 kB / 433.4 MB, free: 3.492 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.3726, allocations: 8 kB / 433.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.3726, allocations: 4.406 kB / 433.4 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002738/0.3729, allocations: 65.61 kB / 433.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003235/0.3732, allocations: 75.89 kB / 433.5 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002232/0.3754, allocations: 2.631 MB / 436.2 MB, free: 488 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.3757, allocations: 19.98 kB / 436.2 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.3757, allocations: 16 kB / 436.2 MB, free: 452 kB / 334.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.000182/0.3759, allocations: 149.8 kB / 436.3 MB, free: 292 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.29e-05/0.376, allocations: 27.81 kB / 436.4 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.967e-05/0.376, allocations: 34.27 kB / 436.4 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.376, allocations: 0 / 436.4 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.376, allocations: 4 kB / 436.4 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.376, allocations: 7.922 kB / 436.4 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000407/0.3765, allocations: 304.5 kB / 436.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3765, allocations: 4 kB / 436.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002076/0.3767, allocations: 39.91 kB / 436.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001572/0.3768, allocations: 53.67 kB / 436.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.3768, allocations: 4 kB / 436.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002122/0.379, allocations: 2.634 MB / 439.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.379, allocations: 0 / 439.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007293/0.3797, allocations: 382.5 kB / 439.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.016e-05/0.3797, allocations: 23.81 kB / 439.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.929e-05/0.3798, allocations: 4 kB / 439.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001997/0.38, allocations: 19.92 kB / 439.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.259e-05/0.38, allocations: 23.95 kB / 439.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.3801, allocations: 8 kB / 439.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002151/0.3803, allocations: 181.2 kB / 440.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3803, allocations: 0 / 440.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004105/0.3807, allocations: 76 kB / 440.1 MB, free: 12.18 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.001096/0.3818, allocations: 0.9043 MB / 441 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000994/0.3828, allocations: 473.6 kB / 441.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3828, allocations: 192 / 441.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005395/0.3833, allocations: 341.2 kB / 441.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000361/0.3837, allocations: 28.42 kB / 441.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004642/0.3883, allocations: 2.942 MB / 444.8 MB, free: 7.258 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004217/0.3887, allocations: 0.7675 MB / 445.6 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001232/0.3889, allocations: 26.28 kB / 445.6 MB, free: 6.441 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.389, allocations: 99.41 kB / 445.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of SimCode: time 1.293e-06/0.389, allocations: 4 kB / 445.7 MB, free: 6.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05046/0.4395, allocations: 5.837 MB / 451.5 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.6, allocations: 11.56 kB / 451.6 MB, free: 0.6289 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.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: 15.064474071143195]