Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.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.001899/0.001899, 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.002332/0.002332, allocations: 203.3 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.501/1.501, allocations: 230.6 MB / 257.5 MB, free: 7.75 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.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 47.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2739, allocations: 53.37 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003684/0.2776, allocations: 2.151 MB / 433.2 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.2797, allocations: 1.161 MB / 434.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.2798, allocations: 4 kB / 434.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003235/0.2801, allocations: 91.52 kB / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004216/0.2806, allocations: 171 kB / 434.6 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002702/0.2808, allocations: 119.6 kB / 434.8 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003398/0.2812, allocations: 302.7 kB / 435.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.2814, allocations: 73.53 kB / 435.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.2815, allocations: 111.6 kB / 435.2 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.2817, allocations: 127.5 kB / 435.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.521e-05/0.2817, allocations: 20 kB / 435.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.2819, allocations: 51.92 kB / 435.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.11e-05/0.2819, allocations: 67.75 kB / 435.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.2821, allocations: 87.55 kB / 435.6 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003746/0.2824, allocations: 300.4 kB / 435.9 MB, free: 1.801 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2824, allocations: 0 / 435.9 MB, free: 1.801 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2824, allocations: 0 / 435.9 MB, free: 1.801 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.2824, allocations: 4 kB / 435.9 MB, free: 1.797 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0008202/0.2833, allocations: 0.4894 MB / 436.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.2833, allocations: 8.031 kB / 436.4 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.253e-05/0.2833, allocations: 46.73 kB / 436.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.2835, allocations: 36.73 kB / 436.5 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.2838, allocations: 202 kB / 436.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.2838, allocations: 16.38 kB / 436.7 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.3e-05/0.2839, allocations: 19.94 kB / 436.7 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.2842, allocations: 165.6 kB / 436.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.2842, allocations: 0 / 436.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.2842, allocations: 4 kB / 436.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.2842, allocations: 8 kB / 436.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002619/0.2845, allocations: 119.7 kB / 437 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008533/0.2853, allocations: 0.5109 MB / 437.5 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.2857, allocations: 161.3 kB / 437.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001551/0.2858, allocations: 85.14 kB / 437.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.2859, allocations: 3.938 kB / 437.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002227/0.2861, allocations: 123.3 kB / 437.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.583e-06/0.2861, allocations: 0 / 437.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005173/0.2866, allocations: 236.2 kB / 438.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.2867, allocations: 51.41 kB / 438.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002797/0.2869, allocations: 272.9 kB / 438.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.287, allocations: 37.7 kB / 438.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.2871, allocations: 148.3 kB / 438.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.657e-05/0.2871, allocations: 79.28 kB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.784e-05/0.2872, allocations: 37.72 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.2874, allocations: 338.8 kB / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.2875, allocations: 51.97 kB / 439.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.2876, allocations: 83.41 kB / 439.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002662/0.2879, allocations: 158.5 kB / 439.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2879, allocations: 0 / 439.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003555/0.2882, allocations: 213.3 kB / 439.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.2882, allocations: 4 kB / 439.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.2882, allocations: 4 kB / 439.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.2883, allocations: 0 / 439.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.2885, allocations: 47.86 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.2885, allocations: 4 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.604e-05/0.2886, allocations: 19.88 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.152e-05/0.2886, allocations: 16.09 kB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.lossTable.nextTimeEvent,$whenCondition1,lossTable.nextTimeEventScaled,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001358/0.2887, allocations: 141.8 kB / 439.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.991e-05/0.2888, allocations: 27.81 kB / 439.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004231/0.2892, allocations: 215.7 kB / 440 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.2892, allocations: 0 / 440 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.2892, allocations: 7.938 kB / 440 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.2892, allocations: 3.938 kB / 440 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000272/0.2895, allocations: 240.5 kB / 440.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2895, allocations: 0 / 440.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001896/0.2897, allocations: 43.92 kB / 440.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.2897, allocations: 4 kB / 440.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.2897, allocations: 7.984 kB / 440.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2897, allocations: 4 kB / 440.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.2897, allocations: 3.938 kB / 440.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005416/0.2903, allocations: 306.3 kB / 440.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.986e-05/0.2903, allocations: 23.83 kB / 440.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.39e-05/0.2903, allocations: 4 kB / 440.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.499e-05/0.2904, allocations: 15.92 kB / 440.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.076e-05/0.2905, allocations: 7.984 kB / 440.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.2905, allocations: 16.05 kB / 440.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001939/0.2907, allocations: 200.5 kB / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2907, allocations: 0 / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002924/0.291, allocations: 59.88 kB / 440.9 MB, free: 12.46 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002306/0.2933, allocations: 1.173 MB / 442.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003339/0.2936, allocations: 143.8 kB / 442.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2936, allocations: 0 / 442.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.2938, allocations: 78.53 kB / 442.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003627/0.2941, allocations: 52.33 kB / 442.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003175/0.2973, allocations: 2.42 MB / 444.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001439/0.2974, allocations: 142.1 kB / 444.9 MB, free: 8.504 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000113/0.2975, allocations: 33.92 kB / 445 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.2977, allocations: 79.41 kB / 445 MB, free: 8.391 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2977, allocations: 0 / 445 MB, free: 8.391 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03468/0.3324, allocations: 6.301 MB / 451.3 MB, free: 2.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.64, allocations: 4.062 kB / 451.3 MB, free: 2.164 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 27.830689448979683]