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.001703/0.001703, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002043/0.002043, allocations: 200.9 kB / 23.73 MB, free: 4.379 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.431/1.431, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.001511/0.001511, allocations: 47.92 kB / 377.7 MB, free: 2.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.285, allocations: 53.36 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006389/0.2914, allocations: 4.561 MB / 435.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003438/0.2949, allocations: 2.008 MB / 437.7 MB, free: 16 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002413/0.2951, allocations: 20.05 kB / 437.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003027/0.2981, allocations: 1.306 MB / 439 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009731/0.2991, allocations: 413.4 kB / 439.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002329/0.3014, allocations: 1.136 MB / 440.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009124/0.3023, allocations: 0.7394 MB / 441.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008857/0.3032, allocations: 0.5769 MB / 441.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004418/0.3037, allocations: 342.8 kB / 442.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005385/0.3042, allocations: 426.3 kB / 442.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.391e-05/0.3043, allocations: 68 kB / 442.7 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007352/0.305, allocations: 403.6 kB / 443.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.3052, allocations: 163.4 kB / 443.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002977/0.3055, allocations: 314.5 kB / 443.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001364/0.3068, allocations: 1.21 MB / 444.7 MB, free: 8.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3068, allocations: 4 kB / 444.7 MB, free: 8.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3068, allocations: 0 / 444.7 MB, free: 8.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.3069, allocations: 0 / 444.7 MB, free: 8.922 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.00434/0.3112, allocations: 1.402 MB / 446.1 MB, free: 7.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.3112, allocations: 8.031 kB / 446.1 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001541/0.3114, allocations: 131.4 kB / 446.3 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002578/0.314, allocations: 372.1 kB / 446.6 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000209/0.3142, allocations: 190.3 kB / 446.8 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.587e-05/0.3142, allocations: 66.38 kB / 446.9 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/0.3144, allocations: 88.3 kB / 447 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001692/0.3161, allocations: 0.901 MB / 447.9 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.011e-05/0.3161, allocations: 3.953 kB / 447.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.953e-05/0.3162, allocations: 36 kB / 447.9 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.3162, allocations: 20 kB / 447.9 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/0.318, allocations: 0.7847 MB / 448.7 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004287/0.3223, allocations: 2.402 MB / 451.1 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.3233, allocations: 0.5063 MB / 451.6 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005235/0.3239, allocations: 218.2 kB / 451.8 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.369e-05/0.324, allocations: 24.47 kB / 451.9 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.324, allocations: 47.06 kB / 451.9 MB, free: 1.512 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.274e-06/0.324, allocations: 0 / 451.9 MB, free: 1.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007318/0.3313, allocations: 2.163 MB / 454.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.3314, allocations: 85.61 kB / 454.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003632/0.3317, allocations: 312.3 kB / 454.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.95e-05/0.3318, allocations: 45.64 kB / 454.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.332, allocations: 371.9 kB / 454.9 MB, free: 14.47 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002004/0.3322, allocations: 226.1 kB / 455.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002326/0.3325, allocations: 146.5 kB / 455.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.3326, allocations: 350.7 kB / 455.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000729/0.3334, allocations: 273.8 kB / 455.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009186/0.3343, allocations: 0.5255 MB / 456.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001711/0.336, allocations: 0.8088 MB / 457.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.336, allocations: 0 / 457.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002054/0.3381, allocations: 0.8926 MB / 458.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.3381, allocations: 8.688 kB / 458.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.3381, allocations: 7.938 kB / 458.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000239/0.3383, allocations: 73.67 kB / 458.2 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008783/0.3392, allocations: 195.7 kB / 458.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002204/0.3414, allocations: 2.661 MB / 461 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006232/0.342, allocations: 59.91 kB / 461.1 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.968e-05/0.3421, allocations: 40.3 kB / 461.1 MB, free: 7.754 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.0002981/0.3424, allocations: 217.5 kB / 461.3 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.745e-05/0.3425, allocations: 47.69 kB / 461.4 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00192/0.3444, allocations: 0.7257 MB / 462.1 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.3444, allocations: 8 kB / 462.1 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3444, allocations: 0 / 462.1 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.3444, allocations: 0 / 462.1 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002691/0.3471, allocations: 1.309 MB / 463.4 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3471, allocations: 0 / 463.4 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007112/0.3478, allocations: 127.8 kB / 463.5 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000207/0.3481, allocations: 65.66 kB / 463.6 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.574e-05/0.3481, allocations: 15.98 kB / 463.6 MB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002274/0.3504, allocations: 2.634 MB / 466.2 MB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.3504, allocations: 128 / 466.2 MB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00251/0.3529, allocations: 1.081 MB / 467.3 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002349/0.3531, allocations: 83.64 kB / 467.4 MB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.666e-05/0.3532, allocations: 12 kB / 467.4 MB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004881/0.3537, allocations: 51.95 kB / 467.5 MB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.3538, allocations: 48.41 kB / 467.5 MB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.661e-05/0.3539, allocations: 19.98 kB / 467.5 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002465/0.3541, allocations: 203.1 kB / 467.7 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3541, allocations: 0 / 467.7 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008289/0.3549, allocations: 183.9 kB / 467.9 MB, free: 0.6094 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.003037/0.358, allocations: 1.676 MB / 469.6 MB, free: 14.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001984/0.36, allocations: 0.869 MB / 470.5 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.36, allocations: 0 / 470.5 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009694/0.3609, allocations: 0.5273 MB / 471 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004784/0.3614, allocations: 52.58 kB / 471 MB, free: 13.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009168/0.3706, allocations: 5.09 MB / 476.1 MB, free: 8.023 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.3709, allocations: 282.6 kB / 476.4 MB, free: 7.727 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003784/0.3713, allocations: 88.5 kB / 476.5 MB, free: 7.637 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003596/0.3716, allocations: 227.3 kB / 476.7 MB, free: 7.414 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3716, allocations: 4 kB / 476.7 MB, free: 7.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09103/0.4627, allocations: 12.44 MB / 489.2 MB, free: 11.2 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.85, allocations: 4 kB / 489.2 MB, free: 11.19 MB / 398.1 MB " [Timeout remaining time 648] (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: 14.22478156798752]