Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.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.001582/0.001582, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001726/0.001726, allocations: 210.6 kB / 23.73 MB, free: 4.387 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.425/1.425, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 43.92 kB / 377.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2394, allocations: 53.37 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004598/0.244, allocations: 2.648 MB / 433.7 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.2454, allocations: 0.7477 MB / 434.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001299/0.2455, allocations: 7.938 kB / 434.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002012/0.2457, allocations: 59.44 kB / 434.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002699/0.246, allocations: 103.2 kB / 434.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002697/0.2463, allocations: 111.8 kB / 434.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003873/0.2466, allocations: 386.5 kB / 435.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.2468, allocations: 95.33 kB / 435.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003034/0.2472, allocations: 159.4 kB / 435.4 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002168/0.2474, allocations: 151.2 kB / 435.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.374e-05/0.2474, allocations: 35.94 kB / 435.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.668e-05/0.2475, allocations: 32 kB / 435.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.973e-05/0.2476, allocations: 79.69 kB / 435.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.2477, allocations: 139.3 kB / 435.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004471/0.2482, allocations: 406.7 kB / 436.2 MB, free: 1.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.2482, allocations: 3.984 kB / 436.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2482, allocations: 0 / 436.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.375e-06/0.2482, allocations: 0 / 436.2 MB, free: 1.504 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.001131/0.2493, allocations: 0.5714 MB / 436.8 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.2493, allocations: 12.03 kB / 436.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.138e-05/0.2494, allocations: 70.66 kB / 436.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.596e-05/0.2495, allocations: 40.7 kB / 436.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003785/0.2498, allocations: 218.8 kB / 437.1 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.522e-05/0.2499, allocations: 29.03 kB / 437.2 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.059e-05/0.2499, allocations: 28.38 kB / 437.2 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005871/0.2505, allocations: 294.2 kB / 437.5 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.2505, allocations: 4 kB / 437.5 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.2506, allocations: 8 kB / 437.5 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.2506, allocations: 8 kB / 437.5 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006331/0.2512, allocations: 254.5 kB / 437.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.2529, allocations: 0.9204 MB / 438.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003861/0.2532, allocations: 146.5 kB / 438.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.2534, allocations: 64.81 kB / 438.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.2535, allocations: 7.984 kB / 438.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.2535, allocations: 34.5 kB / 438.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.373e-06/0.2535, allocations: 4 kB / 438.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002028/0.2555, allocations: 0.5866 MB / 439.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.2556, allocations: 55.41 kB / 439.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003075/0.2559, allocations: 285.6 kB / 439.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.2559, allocations: 37.69 kB / 439.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001821/0.2561, allocations: 228.1 kB / 440.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.578e-05/0.2561, allocations: 79.33 kB / 440.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.2562, allocations: 65.44 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.2564, allocations: 338.8 kB / 440.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000291/0.2567, allocations: 91.94 kB / 440.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003694/0.2571, allocations: 192.2 kB / 440.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006566/0.2577, allocations: 301.1 kB / 441.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.2577, allocations: 4 kB / 441.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008731/0.2586, allocations: 385.1 kB / 441.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.2586, allocations: 15.86 kB / 441.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.2586, allocations: 4 kB / 441.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002393/0.2589, allocations: 62.03 kB / 441.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003253/0.2592, allocations: 75.89 kB / 441.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/0.2614, allocations: 2.626 MB / 444.3 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002778/0.2617, allocations: 23.98 kB / 444.3 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.639e-05/0.2617, allocations: 15.98 kB / 444.3 MB, free: 8.828 MB / 350.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.0001761/0.2619, allocations: 157.7 kB / 444.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.372e-05/0.2619, allocations: 23.81 kB / 444.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.577e-05/0.262, allocations: 30.27 kB / 444.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.262, allocations: 8.062 kB / 444.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.262, allocations: 0 / 444.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.262, allocations: 0 / 444.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000367/0.2624, allocations: 284.5 kB / 444.8 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.2624, allocations: 4 kB / 444.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002108/0.2626, allocations: 39.91 kB / 444.9 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001548/0.2628, allocations: 53.67 kB / 444.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.805e-05/0.2628, allocations: 8 kB / 444.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002077/0.2649, allocations: 2.622 MB / 447.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.2649, allocations: 4.031 kB / 447.6 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007635/0.2656, allocations: 376.9 kB / 447.9 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.384e-05/0.2657, allocations: 23.81 kB / 447.9 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.13e-05/0.2657, allocations: 4 kB / 447.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.2659, allocations: 19.97 kB / 448 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.975e-05/0.266, allocations: 15.97 kB / 448 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.266, allocations: 8 kB / 448 MB, free: 4.855 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002017/0.2662, allocations: 193.2 kB / 448.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2662, allocations: 0 / 448.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003764/0.2666, allocations: 68 kB / 448.2 MB, free: 4.598 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.001054/0.2676, allocations: 0.9175 MB / 449.2 MB, free: 3.652 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009315/0.2685, allocations: 461.6 kB / 449.6 MB, free: 3.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2685, allocations: 256 / 449.6 MB, free: 3.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005293/0.2691, allocations: 346.5 kB / 450 MB, free: 2.812 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.2694, allocations: 27.06 kB / 450 MB, free: 2.789 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004367/0.2738, allocations: 2.953 MB / 452.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001631/0.2739, allocations: 168.8 kB / 453.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.2741, allocations: 26.27 kB / 453.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/0.2742, allocations: 107.4 kB / 453.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2742, allocations: 3.938 kB / 453.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03862/0.3128, allocations: 6.25 MB / 459.5 MB, free: 9.258 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.85, allocations: 6.844 kB / 459.5 MB, free: 9.258 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 14.453575459774584]