Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.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.001889/0.001889, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.00214/0.00214, allocations: 185 kB / 24.46 MB, free: 3.863 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.456/1.456, allocations: 225.7 MB / 253.3 MB, free: 12.84 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: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=720000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 51.92 kB / 371.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2715, allocations: 52.18 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003719/0.2752, allocations: 2.133 MB / 425.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001924/0.2771, allocations: 1.033 MB / 427 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.2772, allocations: 8 kB / 427 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003626/0.2776, allocations: 95.5 kB / 427.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003408/0.2779, allocations: 119.2 kB / 427.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003917/0.2783, allocations: 149.7 kB / 427.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003612/0.2787, allocations: 290.7 kB / 427.6 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002026/0.2789, allocations: 60.45 kB / 427.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001592/0.279, allocations: 119.6 kB / 427.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002026/0.2792, allocations: 123.4 kB / 427.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.733e-05/0.2793, allocations: 16 kB / 427.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001319/0.2794, allocations: 48 kB / 428 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.701e-05/0.2795, allocations: 59.75 kB / 428 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.2796, allocations: 91.59 kB / 428.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003975/0.28, allocations: 297.7 kB / 428.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.28, allocations: 0 / 428.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.28, allocations: 0 / 428.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.303e-06/0.28, allocations: 0 / 428.4 MB, free: 9.828 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.0008509/0.2809, allocations: 485.5 kB / 428.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.2809, allocations: 12.03 kB / 428.9 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000147/0.2811, allocations: 36.73 kB / 428.9 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000355/0.2814, allocations: 183.1 kB / 429.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.381e-05/0.2814, allocations: 12.38 kB / 429.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.525e-05/0.2815, allocations: 20.12 kB / 429.1 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003498/0.2818, allocations: 165.4 kB / 429.3 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.2819, allocations: 7.953 kB / 429.3 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.2819, allocations: 7.938 kB / 429.3 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.2819, allocations: 4 kB / 429.3 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002697/0.2822, allocations: 119.9 kB / 429.4 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000837/0.283, allocations: 471.8 kB / 429.9 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003257/0.2833, allocations: 161.8 kB / 430.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.2835, allocations: 80.83 kB / 430.1 MB, free: 7.996 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.2835, allocations: 4 kB / 430.1 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.2837, allocations: 115.3 kB / 430.3 MB, free: 7.867 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.613e-06/0.2837, allocations: 0 / 430.3 MB, free: 7.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.000523/0.2843, allocations: 244.3 kB / 430.5 MB, free: 7.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.209e-05/0.2843, allocations: 55.41 kB / 430.6 MB, free: 7.559 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002681/0.2846, allocations: 243.2 kB / 430.8 MB, free: 7.312 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.489e-05/0.2846, allocations: 33.69 kB / 430.8 MB, free: 7.273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.2847, allocations: 152.3 kB / 431 MB, free: 7.121 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.566e-05/0.2848, allocations: 67.42 kB / 431 MB, free: 7.055 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.243e-05/0.2849, allocations: 49.7 kB / 431.1 MB, free: 7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.285, allocations: 338.8 kB / 431.4 MB, free: 6.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.2852, allocations: 51.98 kB / 431.5 MB, free: 6.609 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.2853, allocations: 87.39 kB / 431.6 MB, free: 6.512 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002669/0.2856, allocations: 153.2 kB / 431.7 MB, free: 6.352 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2856, allocations: 0 / 431.7 MB, free: 6.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000369/0.286, allocations: 207.5 kB / 431.9 MB, free: 6.145 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.286, allocations: 11.94 kB / 431.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.286, allocations: 0 / 431.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.286, allocations: 3.938 kB / 431.9 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/0.2862, allocations: 47.97 kB / 432 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.2862, allocations: 0 / 432 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.985e-05/0.2863, allocations: 23.78 kB / 432 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.2863, allocations: 12 kB / 432 MB, free: 6.047 MB / 334.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.0001695/0.2865, allocations: 145.8 kB / 432.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.275e-05/0.2865, allocations: 20 kB / 432.2 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004422/0.287, allocations: 215.3 kB / 432.4 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.287, allocations: 4 kB / 432.4 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.287, allocations: 0 / 432.4 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.287, allocations: 7.922 kB / 432.4 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000268/0.2873, allocations: 209.1 kB / 432.6 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.2873, allocations: 4 kB / 432.6 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001918/0.2875, allocations: 35.97 kB / 432.6 MB, free: 5.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.2875, allocations: 4 kB / 432.6 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.2875, allocations: 4 kB / 432.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.2875, allocations: 3.984 kB / 432.6 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2875, allocations: 4 kB / 432.6 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005487/0.288, allocations: 311.9 kB / 433 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.071e-05/0.2881, allocations: 23.83 kB / 433 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.2881, allocations: 7.984 kB / 433 MB, free: 5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.779e-05/0.2882, allocations: 4 kB / 433 MB, free: 4.996 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/0.2882, allocations: 15.92 kB / 433 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.79e-05/0.2883, allocations: 11.98 kB / 433 MB, free: 4.969 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002039/0.2885, allocations: 188.6 kB / 433.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2885, allocations: 0 / 433.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002823/0.2888, allocations: 59.95 kB / 433.3 MB, free: 4.727 MB / 334.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.001771/0.2905, allocations: 442.4 kB / 433.7 MB, free: 4.469 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003608/0.2909, allocations: 143.8 kB / 433.8 MB, free: 4.328 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2909, allocations: 0 / 433.8 MB, free: 4.328 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001572/0.291, allocations: 75.84 kB / 433.9 MB, free: 4.254 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.2914, allocations: 47.09 kB / 433.9 MB, free: 4.211 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.2925, allocations: 0.5891 MB / 434.5 MB, free: 3.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001517/0.2927, allocations: 140.8 kB / 434.7 MB, free: 3.434 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.803e-05/0.2928, allocations: 19.44 kB / 434.7 MB, free: 3.414 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2928, allocations: 0 / 434.7 MB, free: 3.414 MB / 334.1 MB Notification: Performance of Templates: time 0.005907/0.2987, allocations: 3.202 MB / 437.9 MB, free: 220 kB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 14.290754017885774]