Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001908/0.001908, allocations: 120.2 kB / 18.5 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00217/0.00217, allocations: 222.2 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 230.4 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 59.91 kB / 373.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.09658, allocations: 53.39 MB / 427 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003595/0.1002, allocations: 2.263 MB / 429.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.1021, allocations: 1.231 MB / 430.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.473e-05/0.1022, allocations: 7.938 kB / 430.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003275/0.1025, allocations: 91.5 kB / 430.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00039/0.1029, allocations: 163.1 kB / 430.8 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002632/0.1032, allocations: 119.6 kB / 430.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003347/0.1035, allocations: 294.7 kB / 431.2 MB, free: 464 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.1037, allocations: 72.58 kB / 431.3 MB, free: 388 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.1038, allocations: 119.6 kB / 431.4 MB, free: 268 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/0.104, allocations: 131.4 kB / 431.5 MB, free: 136 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.945e-05/0.1041, allocations: 20 kB / 431.5 MB, free: 116 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000115/0.1042, allocations: 47.98 kB / 431.6 MB, free: 68 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.028e-05/0.1042, allocations: 51.78 kB / 431.6 MB, free: 16 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1803/0.2846, allocations: 120 kB / 431.7 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004801/0.2851, allocations: 298 kB / 432 MB, free: 7.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2851, allocations: 0 / 432 MB, free: 7.816 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2851, allocations: 0 / 432 MB, free: 7.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.2851, allocations: 0.75 kB / 432 MB, free: 7.816 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.0007018/0.2858, allocations: 0.5638 MB / 432.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.2858, allocations: 9.344 kB / 432.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.898e-05/0.2858, allocations: 4.344 kB / 432.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.506e-05/0.2859, allocations: 49.62 kB / 432.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001388/0.286, allocations: 37.23 kB / 432.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002828/0.2863, allocations: 260.2 kB / 433 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.2863, allocations: 11.66 kB / 433 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.734e-05/0.2864, allocations: 22.55 kB / 433 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002983/0.2866, allocations: 163.4 kB / 433.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.2867, allocations: 0.625 kB / 433.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/0.2867, allocations: 9.188 kB / 433.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.2867, allocations: 5.875 kB / 433.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000227/0.2869, allocations: 115.6 kB / 433.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007047/0.2876, allocations: 0.5629 MB / 433.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002644/0.2879, allocations: 156 kB / 434 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001272/0.288, allocations: 82.89 kB / 434.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.288, allocations: 3.406 kB / 434.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001816/0.2882, allocations: 121.4 kB / 434.2 MB, free: 6.656 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.563e-06/0.2882, allocations: 1.094 kB / 434.2 MB, free: 6.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004449/0.2887, allocations: 234.7 kB / 434.4 MB, free: 6.609 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.629e-05/0.2887, allocations: 53.09 kB / 434.5 MB, free: 6.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001932/0.2889, allocations: 258.2 kB / 434.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.2889, allocations: 34.45 kB / 434.8 MB, free: 6.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.924e-05/0.289, allocations: 147.9 kB / 434.9 MB, free: 6.309 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.85e-05/0.289, allocations: 80.98 kB / 435 MB, free: 6.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.437e-05/0.2891, allocations: 43.16 kB / 435 MB, free: 6.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.375e-05/0.2891, allocations: 339.3 kB / 435.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.2892, allocations: 49.41 kB / 435.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.2893, allocations: 82.66 kB / 435.5 MB, free: 5.895 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002199/0.2896, allocations: 154.4 kB / 435.6 MB, free: 5.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.2896, allocations: 0 / 435.6 MB, free: 5.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003066/0.2899, allocations: 205.6 kB / 435.8 MB, free: 5.816 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.2899, allocations: 5.719 kB / 435.8 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.2899, allocations: 1.312 kB / 435.8 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.2899, allocations: 2.688 kB / 435.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.2901, allocations: 49.16 kB / 435.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.2901, allocations: 2.172 kB / 435.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.655e-05/0.2902, allocations: 22.19 kB / 435.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.2902, allocations: 10.12 kB / 435.9 MB, free: 5.805 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 9.521e-05/0.2903, allocations: 141.1 kB / 436.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.358e-05/0.2903, allocations: 22.45 kB / 436.1 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.987e-05/0.2904, allocations: 37.97 kB / 436.1 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2904, allocations: 1.188 kB / 436.1 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2904, allocations: 3.656 kB / 436.1 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.2904, allocations: 3.938 kB / 436.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002145/0.2906, allocations: 290.9 kB / 436.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2906, allocations: 4.031 kB / 436.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001734/0.2908, allocations: 33.77 kB / 436.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.2908, allocations: 1.156 kB / 436.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.2908, allocations: 9.094 kB / 436.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.2908, allocations: 6.5 kB / 436.5 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2908, allocations: 0 / 436.5 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004484/0.2913, allocations: 290.6 kB / 436.8 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.728e-05/0.2913, allocations: 92.31 kB / 436.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.259e-05/0.2913, allocations: 9.344 kB / 436.9 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.79e-05/0.2914, allocations: 6.391 kB / 436.9 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.267e-05/0.2915, allocations: 14.8 kB / 436.9 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.085e-05/0.2915, allocations: 11.62 kB / 436.9 MB, free: 5.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001543/0.2916, allocations: 191 kB / 437.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2916, allocations: 0 / 437.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000266/0.2919, allocations: 61.52 kB / 437.1 MB, free: 5.18 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.001877/0.2938, allocations: 1.118 MB / 438.3 MB, free: 4.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002857/0.2941, allocations: 137.4 kB / 438.4 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.2941, allocations: 0 / 438.4 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.2942, allocations: 65.09 kB / 438.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003245/0.2945, allocations: 63.61 kB / 438.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/0.297, allocations: 2.39 MB / 440.9 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001666/0.2971, allocations: 0.7528 MB / 441.7 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.2972, allocations: 28.8 kB / 441.7 MB, free: 2.395 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.2973, allocations: 75.25 kB / 441.8 MB, free: 2.387 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2973, allocations: 0 / 441.8 MB, free: 2.387 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02381/0.3212, allocations: 5.442 MB / 447.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.846/8.167, allocations: 7.312 kB / 447.2 MB, free: 1.465 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/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_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 651] Reference file matches [Calling sys.exit(0), Time elapsed: 37.75899333896814]