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.001937/0.001937, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.002235/0.002235, allocations: 212.3 kB / 23.74 MB, free: 4.66 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.429/1.429, allocations: 230.5 MB / 257.4 MB, free: 8.008 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.001853/0.001853, allocations: 59.91 kB / 377.8 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2393, allocations: 53.41 MB / 431.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003884/0.2431, allocations: 2.279 MB / 433.4 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00215/0.2453, allocations: 1.246 MB / 434.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.2454, allocations: 11.88 kB / 434.7 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003793/0.2458, allocations: 91.56 kB / 434.8 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004488/0.2462, allocations: 167 kB / 435 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002994/0.2465, allocations: 115.6 kB / 435.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003888/0.2469, allocations: 298.7 kB / 435.4 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002024/0.2471, allocations: 72.77 kB / 435.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.2473, allocations: 115.6 kB / 435.5 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002216/0.2475, allocations: 131.5 kB / 435.7 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.352e-05/0.2476, allocations: 19.94 kB / 435.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001404/0.2477, allocations: 55.98 kB / 435.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.633e-05/0.2478, allocations: 59.81 kB / 435.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001676/0.248, allocations: 115.4 kB / 435.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004335/0.2484, allocations: 295.2 kB / 436.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2484, allocations: 0 / 436.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2484, allocations: 0 / 436.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.2484, allocations: 3.938 kB / 436.2 MB, free: 1.637 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.0008541/0.2493, allocations: 493.2 kB / 436.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.2493, allocations: 12.03 kB / 436.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.621e-05/0.2494, allocations: 50.73 kB / 436.8 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001408/0.2495, allocations: 36.75 kB / 436.8 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003798/0.2499, allocations: 206 kB / 437 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.2499, allocations: 12.38 kB / 437 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.894e-05/0.2499, allocations: 16.38 kB / 437 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003339/0.2503, allocations: 165.7 kB / 437.2 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.2503, allocations: 7.938 kB / 437.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.2503, allocations: 4 kB / 437.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.2503, allocations: 4 kB / 437.2 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002599/0.2506, allocations: 119.7 kB / 437.3 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009067/0.2515, allocations: 0.5226 MB / 437.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003303/0.2518, allocations: 162.4 kB / 438 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.252, allocations: 87.2 kB / 438.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.886e-05/0.252, allocations: 352 / 438.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002476/0.2523, allocations: 119.3 kB / 438.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.683e-06/0.2523, allocations: 0 / 438.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005089/0.2528, allocations: 233.4 kB / 438.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.2528, allocations: 59.39 kB / 438.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.2531, allocations: 260.9 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.2531, allocations: 29.7 kB / 438.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.2532, allocations: 148.4 kB / 438.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.386e-05/0.2533, allocations: 71.41 kB / 439 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.028e-05/0.2534, allocations: 45.66 kB / 439 MB, free: 14.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.2535, allocations: 334.8 kB / 439.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.2536, allocations: 59.91 kB / 439.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/0.2538, allocations: 84.06 kB / 439.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002572/0.254, allocations: 150.9 kB / 439.6 MB, free: 14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.254, allocations: 0 / 439.6 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000353/0.2544, allocations: 201.4 kB / 439.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.2544, allocations: 8 kB / 439.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.2544, allocations: 3.938 kB / 439.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.2544, allocations: 0 / 439.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002316/0.2547, allocations: 47.98 kB / 439.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.2547, allocations: 3.984 kB / 439.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.2548, allocations: 19.83 kB / 439.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.2548, allocations: 8 kB / 439.9 MB, free: 13.71 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.0001503/0.255, allocations: 150.3 kB / 440.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.812e-05/0.255, allocations: 23.86 kB / 440.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004058/0.2554, allocations: 202.4 kB / 440.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.2554, allocations: 4 kB / 440.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.2554, allocations: 3.938 kB / 440.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.2554, allocations: 3.984 kB / 440.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003104/0.2557, allocations: 260.5 kB / 440.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2557, allocations: 0 / 440.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001882/0.2559, allocations: 35.92 kB / 440.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.2559, allocations: 4 kB / 440.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.2559, allocations: 11.98 kB / 440.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.2559, allocations: 4 kB / 440.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.2559, allocations: 3.938 kB / 440.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005061/0.2565, allocations: 284.8 kB / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.967e-05/0.2565, allocations: 23.83 kB / 440.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.065e-05/0.2565, allocations: 11.92 kB / 440.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.268e-05/0.2566, allocations: 8.062 kB / 440.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.496e-05/0.2567, allocations: 11.98 kB / 440.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.2567, allocations: 7.984 kB / 441 MB, free: 12.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001876/0.2569, allocations: 188.5 kB / 441.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2569, allocations: 0 / 441.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002825/0.2571, allocations: 63.88 kB / 441.2 MB, free: 12.36 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 (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.002246/0.2594, allocations: 1.116 MB / 442.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003743/0.2598, allocations: 135.8 kB / 442.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2598, allocations: 0 / 442.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001372/0.2599, allocations: 63.92 kB / 442.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.2603, allocations: 59.58 kB / 442.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003163/0.2634, allocations: 2.396 MB / 445 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.2638, allocations: 0.7519 MB / 445.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.2639, allocations: 33.92 kB / 445.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.2641, allocations: 71.41 kB / 445.8 MB, free: 7.723 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2641, allocations: 0 / 445.8 MB, free: 7.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03562/0.2997, allocations: 5.652 MB / 451.5 MB, free: 2.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.07, allocations: 12.11 kB / 451.5 MB, free: 2.117 MB / 350.1 MB " [Timeout remaining time 649] (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 655] Reference file matches [Calling sys.exit(0), Time elapsed: 30.680512283928692]