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.001365/0.001365, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001349/0.001349, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.511/1.511, allocations: 230.6 MB / 254.1 MB, free: 15.07 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: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=720000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=720000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 47.92 kB / 373.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.102, allocations: 53.34 MB / 426.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003545/0.1055, allocations: 2.261 MB / 429.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002008/0.1075, allocations: 1.224 MB / 430.3 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.1076, allocations: 4 kB / 430.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003274/0.108, allocations: 91.5 kB / 430.4 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004169/0.1084, allocations: 163 kB / 430.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002715/0.1087, allocations: 123.6 kB / 430.7 MB, free: 400 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003498/0.109, allocations: 298.7 kB / 430.9 MB, free: 100 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.1092, allocations: 68.59 kB / 431 MB, free: 28 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1791/0.2883, allocations: 110.8 kB / 431.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002717/0.2885, allocations: 131.6 kB / 431.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.193e-05/0.2886, allocations: 19.12 kB / 431.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001994/0.2888, allocations: 56.36 kB / 431.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.388e-05/0.2889, allocations: 50.62 kB / 431.4 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.289, allocations: 119.3 kB / 431.5 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004503/0.2895, allocations: 296 kB / 431.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2895, allocations: 0.5938 kB / 431.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2895, allocations: 0.9688 kB / 431.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.2895, allocations: 0.5312 kB / 431.8 MB, free: 8.094 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.000731/0.2902, allocations: 0.5654 MB / 432.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.2902, allocations: 8.844 kB / 432.4 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.2904, allocations: 35.28 kB / 432.4 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.2907, allocations: 258.9 kB / 432.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.31e-05/0.2907, allocations: 11.75 kB / 432.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.43e-05/0.2907, allocations: 18.69 kB / 432.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003108/0.291, allocations: 157.7 kB / 432.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.2911, allocations: 1.031 kB / 432.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.2911, allocations: 11.08 kB / 432.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.2911, allocations: 4.406 kB / 432.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002344/0.2913, allocations: 127.6 kB / 433 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000807/0.2921, allocations: 0.559 MB / 433.5 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003259/0.2925, allocations: 153.1 kB / 433.7 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001662/0.2926, allocations: 79.25 kB / 433.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.484e-05/0.2927, allocations: 3.984 kB / 433.8 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002475/0.2929, allocations: 125.7 kB / 433.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.743e-06/0.2929, allocations: 0 / 433.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005991/0.2935, allocations: 234.2 kB / 434.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.2935, allocations: 53.62 kB / 434.2 MB, free: 6.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002386/0.2938, allocations: 263.4 kB / 434.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.2938, allocations: 30.7 kB / 434.4 MB, free: 6.727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.01e-05/0.2939, allocations: 152.5 kB / 434.6 MB, free: 6.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.462e-05/0.2939, allocations: 69.45 kB / 434.7 MB, free: 6.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.426e-05/0.294, allocations: 43.75 kB / 434.7 MB, free: 6.566 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.643e-05/0.294, allocations: 336.4 kB / 435 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.2942, allocations: 51.67 kB / 435.1 MB, free: 6.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.2943, allocations: 88.3 kB / 435.2 MB, free: 6.219 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002344/0.2945, allocations: 150.3 kB / 435.3 MB, free: 6.188 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2945, allocations: 0 / 435.3 MB, free: 6.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003444/0.2949, allocations: 203.3 kB / 435.5 MB, free: 6.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.2949, allocations: 5.656 kB / 435.5 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2949, allocations: 3.297 kB / 435.5 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.2949, allocations: 2.594 kB / 435.5 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002308/0.2951, allocations: 45.89 kB / 435.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.2951, allocations: 2.281 kB / 435.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.2952, allocations: 24.84 kB / 435.6 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.2953, allocations: 10.28 kB / 435.6 MB, free: 6.129 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.0001035/0.2954, allocations: 145.4 kB / 435.7 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.646e-05/0.2954, allocations: 23.2 kB / 435.8 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.054e-05/0.2955, allocations: 30.88 kB / 435.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.2955, allocations: 2.438 kB / 435.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.2955, allocations: 0 / 435.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.2955, allocations: 9.375 kB / 435.8 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002382/0.2957, allocations: 286.2 kB / 436.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2957, allocations: 0 / 436.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002072/0.2959, allocations: 36.17 kB / 436.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.2959, allocations: 2.406 kB / 436.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.2959, allocations: 7.344 kB / 436.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2959, allocations: 0 / 436.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2959, allocations: 1.969 kB / 436.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004892/0.2964, allocations: 292.5 kB / 436.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.217e-05/0.2965, allocations: 100.3 kB / 436.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.666e-05/0.2965, allocations: 4.375 kB / 436.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.568e-05/0.2966, allocations: 7.266 kB / 436.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.704e-05/0.2967, allocations: 18.22 kB / 436.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.238e-05/0.2967, allocations: 9.219 kB / 436.6 MB, free: 5.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001753/0.2969, allocations: 195 kB / 436.8 MB, free: 5.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2969, allocations: 0 / 436.8 MB, free: 5.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.2972, allocations: 60.94 kB / 436.8 MB, free: 5.508 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.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * 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.001473/0.2986, allocations: 419.5 kB / 437.2 MB, free: 5.359 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003312/0.299, allocations: 135.1 kB / 437.4 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.299, allocations: 0 / 437.4 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.2991, allocations: 69.38 kB / 437.4 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000349/0.2995, allocations: 47.19 kB / 437.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000943/0.3004, allocations: 0.5458 MB / 438 MB, free: 5.051 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000186/0.3006, allocations: 0.7523 MB / 438.8 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.923e-05/0.3007, allocations: 25.25 kB / 438.8 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.28e-05/0.3007, allocations: 22.45 kB / 438.8 MB, free: 4.34 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3007, allocations: 0 / 438.8 MB, free: 4.34 MB / 350.1 MB Notification: Performance of Templates: time 0.007544/0.3083, allocations: 2.759 MB / 441.6 MB, free: 4.117 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins/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: 8.662667978554964]