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.001593/0.001593, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.002039/0.002039, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.402/1.402, allocations: 230.2 MB / 254.5 MB, free: 15.11 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 59.91 kB / 373.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09593/0.0977, allocations: 53.33 MB / 426.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003725/0.1014, allocations: 2.257 MB / 428.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002072/0.1035, allocations: 1.229 MB / 430.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.1036, allocations: 8 kB / 430.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003367/0.104, allocations: 91.5 kB / 430.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004191/0.1044, allocations: 159.1 kB / 430.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002733/0.1046, allocations: 119.6 kB / 430.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003494/0.105, allocations: 294.7 kB / 430.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.1052, allocations: 72.58 kB / 430.9 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.1053, allocations: 115.6 kB / 431 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001882/0.1055, allocations: 131.5 kB / 431.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.599e-05/0.1056, allocations: 20 kB / 431.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.1057, allocations: 47.98 kB / 431.2 MB, free: 476 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.425e-05/0.1058, allocations: 55.77 kB / 431.2 MB, free: 420 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.1059, allocations: 123.3 kB / 431.3 MB, free: 296 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.185/0.2909, allocations: 295.6 kB / 431.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.2909, allocations: 1.453 kB / 431.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2909, allocations: 0 / 431.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.942e-05/0.291, allocations: 0 / 431.6 MB, free: 8.031 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.0008772/0.2918, allocations: 0.5597 MB / 432.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.2919, allocations: 9.719 kB / 432.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.262e-05/0.2919, allocations: 49.83 kB / 432.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.2921, allocations: 34.44 kB / 432.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003344/0.2924, allocations: 261.5 kB / 432.5 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.2924, allocations: 10.75 kB / 432.6 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.868e-05/0.2925, allocations: 21.03 kB / 432.6 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003197/0.2928, allocations: 164.4 kB / 432.7 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.2928, allocations: 1.781 kB / 432.7 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.801e-05/0.2928, allocations: 7.375 kB / 432.7 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.2928, allocations: 4.562 kB / 432.7 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000242/0.2931, allocations: 121 kB / 432.9 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007533/0.2938, allocations: 0.565 MB / 433.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002726/0.2941, allocations: 148.1 kB / 433.6 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001312/0.2942, allocations: 81.97 kB / 433.7 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.2943, allocations: 4.469 kB / 433.7 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002048/0.2945, allocations: 121 kB / 433.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.552e-06/0.2945, allocations: 0.8125 kB / 433.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.000422/0.2949, allocations: 232.8 kB / 434 MB, free: 6.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.716e-05/0.2949, allocations: 57.69 kB / 434.1 MB, free: 6.777 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/0.2951, allocations: 260.2 kB / 434.3 MB, free: 6.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.2951, allocations: 30.27 kB / 434.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.885e-05/0.2952, allocations: 144.8 kB / 434.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.896e-05/0.2952, allocations: 78.36 kB / 434.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-05/0.2953, allocations: 49.8 kB / 434.6 MB, free: 6.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.29e-05/0.2953, allocations: 337 kB / 434.9 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.2954, allocations: 50.42 kB / 435 MB, free: 6.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.2956, allocations: 87.25 kB / 435.1 MB, free: 6.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.2958, allocations: 149.2 kB / 435.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2958, allocations: 0 / 435.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002854/0.2961, allocations: 204.2 kB / 435.4 MB, free: 6.047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.2961, allocations: 6 kB / 435.4 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.2961, allocations: 4.5 kB / 435.4 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.2961, allocations: 2.562 kB / 435.4 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001965/0.2963, allocations: 48.42 kB / 435.5 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.2963, allocations: 2.594 kB / 435.5 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.745e-05/0.2964, allocations: 20.86 kB / 435.5 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.2964, allocations: 5.375 kB / 435.5 MB, free: 6.035 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.107e-05/0.2965, allocations: 150 kB / 435.7 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.187e-05/0.2965, allocations: 22.95 kB / 435.7 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.821e-05/0.2966, allocations: 29.58 kB / 435.7 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.2966, allocations: 2.156 kB / 435.7 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.2966, allocations: 2.312 kB / 435.7 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.2966, allocations: 5 kB / 435.7 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.2968, allocations: 294.1 kB / 436 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2968, allocations: 0.625 kB / 436 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.297, allocations: 40.94 kB / 436 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.297, allocations: 5.094 kB / 436.1 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.297, allocations: 5.812 kB / 436.1 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.297, allocations: 1.719 kB / 436.1 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.297, allocations: 0 / 436.1 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004252/0.2974, allocations: 298.8 kB / 436.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.994e-05/0.2974, allocations: 93.78 kB / 436.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.349e-05/0.2975, allocations: 5.125 kB / 436.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.719e-05/0.2976, allocations: 9.125 kB / 436.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.856e-05/0.2976, allocations: 16.02 kB / 436.5 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.021e-05/0.2976, allocations: 9.344 kB / 436.5 MB, free: 5.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001457/0.2978, allocations: 193.9 kB / 436.7 MB, free: 5.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2978, allocations: 0 / 436.7 MB, free: 5.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002706/0.298, allocations: 59.23 kB / 436.7 MB, free: 5.414 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.001878/0.2999, allocations: 1.117 MB / 437.8 MB, free: 4.742 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002826/0.3002, allocations: 137 kB / 438 MB, free: 4.734 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3002, allocations: 0 / 438 MB, free: 4.734 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.3003, allocations: 72.58 kB / 438 MB, free: 4.734 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.3006, allocations: 60.53 kB / 438.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002365/0.303, allocations: 2.389 MB / 440.5 MB, free: 3.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001672/0.3032, allocations: 0.7457 MB / 441.2 MB, free: 2.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.3033, allocations: 29.42 kB / 441.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.3034, allocations: 76.25 kB / 441.3 MB, free: 2.637 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3034, allocations: 0 / 441.3 MB, free: 2.637 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03048/0.3339, allocations: 5.405 MB / 446.8 MB, free: 1.742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.817/8.151, allocations: 6.438 kB / 446.8 MB, free: 1.738 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 655] Reference file matches [Calling sys.exit(0), Time elapsed: 28.26004402479157]