Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.422/1.422, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09939/0.1009, allocations: 53.33 MB / 426.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003627/0.1045, allocations: 2.263 MB / 428.6 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00204/0.1066, allocations: 1.235 MB / 429.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.83e-05/0.1067, allocations: 4 kB / 429.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003239/0.107, allocations: 87.5 kB / 429.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004197/0.1074, allocations: 163.1 kB / 430 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000272/0.1077, allocations: 119.6 kB / 430.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004029/0.1081, allocations: 294.7 kB / 430.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.1082, allocations: 72.58 kB / 430.5 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.1084, allocations: 119.6 kB / 430.6 MB, free: 452 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.1086, allocations: 127.5 kB / 430.8 MB, free: 324 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.406e-05/0.1086, allocations: 20 kB / 430.8 MB, free: 304 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.1088, allocations: 51.92 kB / 430.8 MB, free: 252 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.6e-05/0.1088, allocations: 59.83 kB / 430.9 MB, free: 192 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.109, allocations: 119.3 kB / 431 MB, free: 72 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2074/0.3163, allocations: 291.4 kB / 431.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3163, allocations: 0.5938 kB / 431.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3163, allocations: 0 / 431.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.619e-05/0.3164, allocations: 0.9062 kB / 431.3 MB, free: 7.875 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.0008067/0.3172, allocations: 0.5612 MB / 431.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.3172, allocations: 10.41 kB / 431.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.811e-05/0.3173, allocations: 50.34 kB / 431.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001455/0.3174, allocations: 35.41 kB / 431.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.3177, allocations: 258.9 kB / 432.2 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.3178, allocations: 14.69 kB / 432.2 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.344e-05/0.3178, allocations: 14.75 kB / 432.2 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003214/0.3181, allocations: 164.9 kB / 432.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.3181, allocations: 4.438 kB / 432.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.087e-05/0.3182, allocations: 9 kB / 432.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.3182, allocations: 3.969 kB / 432.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000255/0.3184, allocations: 122.1 kB / 432.5 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008145/0.3192, allocations: 0.5627 MB / 433.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003174/0.3196, allocations: 150.2 kB / 433.2 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001463/0.3197, allocations: 84.39 kB / 433.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.302e-05/0.3197, allocations: 1.656 kB / 433.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002158/0.3199, allocations: 120.1 kB / 433.4 MB, free: 6.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/0.32, allocations: 0 / 433.4 MB, free: 6.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004866/0.3204, allocations: 234.7 kB / 433.7 MB, free: 6.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/0.3205, allocations: 57.11 kB / 433.7 MB, free: 6.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002286/0.3207, allocations: 257 kB / 434 MB, free: 6.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.3207, allocations: 33.02 kB / 434 MB, free: 6.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.138e-05/0.3208, allocations: 152.5 kB / 434.2 MB, free: 6.379 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.466e-05/0.3208, allocations: 73.33 kB / 434.2 MB, free: 6.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.299e-05/0.3209, allocations: 46.36 kB / 434.3 MB, free: 6.312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.101e-05/0.321, allocations: 338.9 kB / 434.6 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.3211, allocations: 49.64 kB / 434.6 MB, free: 5.996 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.3212, allocations: 84.3 kB / 434.7 MB, free: 5.965 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002337/0.3214, allocations: 152.9 kB / 434.9 MB, free: 5.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3214, allocations: 0 / 434.9 MB, free: 5.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003459/0.3218, allocations: 203.3 kB / 435.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3218, allocations: 8.188 kB / 435.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.3218, allocations: 1.438 kB / 435.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.3218, allocations: 2.438 kB / 435.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.322, allocations: 47.75 kB / 435.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.322, allocations: 6.75 kB / 435.1 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.688e-05/0.3221, allocations: 19.02 kB / 435.2 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.3222, allocations: 9.75 kB / 435.2 MB, free: 5.875 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.0001203/0.3223, allocations: 146.7 kB / 435.3 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.838e-05/0.3223, allocations: 22.61 kB / 435.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.288e-05/0.3224, allocations: 31.8 kB / 435.4 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3224, allocations: 2.406 kB / 435.4 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-06/0.3224, allocations: 5.172 kB / 435.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3224, allocations: 0 / 435.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000265/0.3227, allocations: 289.1 kB / 435.7 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3227, allocations: 7.812 kB / 435.7 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001846/0.3229, allocations: 35.47 kB / 435.7 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.3229, allocations: 1.125 kB / 435.7 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.3229, allocations: 5.531 kB / 435.7 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.3229, allocations: 1.031 kB / 435.7 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.3229, allocations: 5.094 kB / 435.7 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000517/0.3234, allocations: 291.2 kB / 436 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.118e-05/0.3234, allocations: 93.12 kB / 436.1 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.3235, allocations: 9.25 kB / 436.1 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.949e-05/0.3236, allocations: 8.109 kB / 436.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.291e-05/0.3236, allocations: 14.3 kB / 436.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.192e-05/0.3236, allocations: 7.312 kB / 436.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001717/0.3238, allocations: 191.9 kB / 436.3 MB, free: 5.266 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3238, allocations: 0 / 436.3 MB, free: 5.266 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002916/0.3241, allocations: 62.31 kB / 436.4 MB, free: 5.258 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.002093/0.3262, allocations: 1.129 MB / 437.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003454/0.3265, allocations: 143 kB / 437.6 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3265, allocations: 0 / 437.6 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001458/0.3267, allocations: 69.02 kB / 437.7 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.327, allocations: 54.73 kB / 437.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.3297, allocations: 2.383 MB / 440.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.33, allocations: 0.7526 MB / 440.9 MB, free: 2.496 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.3301, allocations: 24.55 kB / 440.9 MB, free: 2.496 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.3302, allocations: 69.8 kB / 441 MB, free: 2.488 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3302, allocations: 0 / 441 MB, free: 2.488 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03264/0.3628, allocations: 5.416 MB / 446.4 MB, free: 1.594 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.805/8.168, allocations: 9.25 kB / 446.4 MB, free: 1.59 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 654] Reference file matches [Calling sys.exit(0), Time elapsed: 28.78024083492346]