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.001213/0.001213, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001384/0.001384, allocations: 207.4 kB / 24.53 MB, free: 4.07 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.317/1.317, allocations: 230.5 MB / 258.2 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 179] 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.001739/0.001739, allocations: 59.91 kB / 378.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2273, allocations: 53.41 MB / 432 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003588/0.2309, allocations: 2.274 MB / 434.2 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002127/0.2331, allocations: 1.258 MB / 435.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.2332, allocations: 7.938 kB / 435.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003504/0.2335, allocations: 91.5 kB / 435.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000427/0.2339, allocations: 163.1 kB / 435.7 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002716/0.2342, allocations: 127.6 kB / 435.9 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003628/0.2346, allocations: 290.8 kB / 436.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000181/0.2348, allocations: 68.77 kB / 436.2 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001784/0.2349, allocations: 123.5 kB / 436.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002071/0.2351, allocations: 135.5 kB / 436.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.366e-05/0.2352, allocations: 16 kB / 436.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00013/0.2353, allocations: 48 kB / 436.5 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.231e-05/0.2354, allocations: 55.83 kB / 436.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.2355, allocations: 127.3 kB / 436.7 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003829/0.2359, allocations: 287.7 kB / 437 MB, free: 1.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2359, allocations: 3.938 kB / 437 MB, free: 1.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2359, allocations: 3.938 kB / 437 MB, free: 1.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.2359, allocations: 0 / 437 MB, free: 1.652 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.0007772/0.2367, allocations: 0.4894 MB / 437.5 MB, free: 1.133 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.2367, allocations: 16.02 kB / 437.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.729e-05/0.2368, allocations: 4.188 kB / 437.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.816e-05/0.2368, allocations: 46.73 kB / 437.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.2369, allocations: 32.75 kB / 437.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003456/0.2373, allocations: 206 kB / 437.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.2373, allocations: 16.38 kB / 437.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.738e-05/0.2373, allocations: 20.38 kB / 437.8 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003212/0.2377, allocations: 165.3 kB / 438 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.2377, allocations: 0 / 438 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.2377, allocations: 4 kB / 438 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.2377, allocations: 8 kB / 438 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002411/0.2379, allocations: 111.9 kB / 438.1 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008676/0.2388, allocations: 0.5421 MB / 438.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.2391, allocations: 142.5 kB / 438.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.2393, allocations: 80.83 kB / 438.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.017e-05/0.2393, allocations: 8.328 kB / 438.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002359/0.2395, allocations: 114 kB / 439 MB, free: 15.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.392e-06/0.2395, allocations: 4 kB / 439 MB, free: 15.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004861/0.24, allocations: 233.4 kB / 439.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.2401, allocations: 55.41 kB / 439.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002705/0.2403, allocations: 264.9 kB / 439.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.2404, allocations: 25.7 kB / 439.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.2405, allocations: 148.4 kB / 439.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.867e-05/0.2405, allocations: 63.44 kB / 439.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.002e-05/0.2406, allocations: 49.66 kB / 439.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.2408, allocations: 342.8 kB / 440.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.2409, allocations: 43.98 kB / 440.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.241, allocations: 91.98 kB / 440.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002536/0.2413, allocations: 147 kB / 440.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2413, allocations: 3.938 kB / 440.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003525/0.2416, allocations: 201.4 kB / 440.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.2416, allocations: 8 kB / 440.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.2416, allocations: 0 / 440.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.2417, allocations: 7.984 kB / 440.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002073/0.2419, allocations: 43.92 kB / 440.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.2419, allocations: 3.938 kB / 440.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.268e-05/0.242, allocations: 23.98 kB / 440.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.242, allocations: 4 kB / 440.7 MB, free: 13.73 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.0001448/0.2421, allocations: 146.2 kB / 440.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.671e-05/0.2422, allocations: 27.8 kB / 440.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003924/0.2426, allocations: 202.4 kB / 441.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.2426, allocations: 4 kB / 441.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2426, allocations: 3.938 kB / 441.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.2426, allocations: 7.922 kB / 441.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000305/0.2429, allocations: 272.5 kB / 441.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.2429, allocations: 0 / 441.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.2431, allocations: 35.92 kB / 441.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.2431, allocations: 0 / 441.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.2431, allocations: 8 kB / 441.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2431, allocations: 0 / 441.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.2431, allocations: 3.938 kB / 441.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004792/0.2436, allocations: 280.9 kB / 441.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.399e-05/0.2436, allocations: 27.89 kB / 441.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.664e-05/0.2436, allocations: 7.938 kB / 441.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.649e-05/0.2437, allocations: 8 kB / 441.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.2437, allocations: 15.97 kB / 441.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.2438, allocations: 4 kB / 441.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001891/0.244, allocations: 196.5 kB / 441.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.244, allocations: 7.938 kB / 441.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002611/0.2442, allocations: 55.89 kB / 442 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.002085/0.2463, allocations: 1.116 MB / 443.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002975/0.2466, allocations: 139.8 kB / 443.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2466, allocations: 0 / 443.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001393/0.2467, allocations: 67.91 kB / 443.3 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.0003358/0.2471, allocations: 55.58 kB / 443.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002918/0.25, allocations: 2.398 MB / 445.8 MB, free: 8.613 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003835/0.2504, allocations: 0.748 MB / 446.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.49e-05/0.2505, allocations: 25.94 kB / 446.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.2506, allocations: 75.41 kB / 446.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2506, allocations: 0 / 446.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02697/0.2776, allocations: 5.689 MB / 452.3 MB, free: 2.109 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.66, allocations: 10.91 kB / 452.3 MB, free: 2.102 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 651] Reference file matches [Calling sys.exit(0), Time elapsed: 40.23659124597907]