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.001418/0.001418, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001645/0.001645, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.502/1.502, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.001508/0.001508, allocations: 43.94 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1072, allocations: 53.34 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003762/0.111, allocations: 2.257 MB / 428.6 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.1134, allocations: 1.231 MB / 429.8 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001873/0.1136, allocations: 7.938 kB / 429.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004451/0.114, allocations: 87.56 kB / 429.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005547/0.1146, allocations: 159 kB / 430 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003556/0.115, allocations: 119.6 kB / 430.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004219/0.1154, allocations: 302.7 kB / 430.5 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002199/0.1156, allocations: 64.59 kB / 430.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001814/0.1158, allocations: 119.6 kB / 430.6 MB, free: 456 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002466/0.116, allocations: 131.5 kB / 430.8 MB, free: 324 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.701e-05/0.1161, allocations: 16 kB / 430.8 MB, free: 308 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001708/0.1162, allocations: 59.86 kB / 430.8 MB, free: 248 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.1163, allocations: 55.81 kB / 430.9 MB, free: 192 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.1165, allocations: 115.4 kB / 431 MB, free: 76 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2104/0.3269, allocations: 291.3 kB / 431.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.3269, allocations: 2.781 kB / 431.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3269, allocations: 0 / 431.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.3269, allocations: 0 / 431.3 MB, free: 8.102 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.0008333/0.3277, allocations: 0.558 MB / 431.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.624e-05/0.3278, allocations: 13.19 kB / 431.9 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.788e-05/0.3278, allocations: 51.58 kB / 431.9 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000155/0.328, allocations: 34.23 kB / 431.9 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.3283, allocations: 262.7 kB / 432.2 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.3284, allocations: 10.97 kB / 432.2 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.309e-05/0.3284, allocations: 18.97 kB / 432.2 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003292/0.3287, allocations: 160.2 kB / 432.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.3287, allocations: 5.188 kB / 432.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.166e-05/0.3288, allocations: 6.656 kB / 432.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3288, allocations: 4.25 kB / 432.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002544/0.329, allocations: 127.3 kB / 432.5 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008045/0.3298, allocations: 0.557 MB / 433.1 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003214/0.3301, allocations: 155.4 kB / 433.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.3303, allocations: 77.03 kB / 433.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.068e-05/0.3303, allocations: 4.672 kB / 433.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002319/0.3306, allocations: 115.3 kB / 433.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 2.264e-06/0.3306, allocations: 1.219 kB / 433.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005012/0.3311, allocations: 238.7 kB / 433.7 MB, free: 6.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.3311, allocations: 54.5 kB / 433.7 MB, free: 6.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002365/0.3313, allocations: 267.1 kB / 434 MB, free: 6.734 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.3314, allocations: 27.14 kB / 434 MB, free: 6.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.62e-05/0.3314, allocations: 144 kB / 434.1 MB, free: 6.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.849e-05/0.3315, allocations: 76.02 kB / 434.2 MB, free: 6.559 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.88e-05/0.3315, allocations: 50.89 kB / 434.3 MB, free: 6.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.797e-05/0.3316, allocations: 337.8 kB / 434.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.3318, allocations: 50.81 kB / 434.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.3319, allocations: 86.12 kB / 434.7 MB, free: 6.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002547/0.3321, allocations: 151.2 kB / 434.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3321, allocations: 0 / 434.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003509/0.3325, allocations: 200.9 kB / 435.1 MB, free: 6.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3325, allocations: 9.719 kB / 435.1 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.3325, allocations: 2.547 kB / 435.1 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.3325, allocations: 1.031 kB / 435.1 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002301/0.3328, allocations: 50 kB / 435.1 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.3328, allocations: 5.344 kB / 435.1 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.3329, allocations: 18.3 kB / 435.2 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.3329, allocations: 6.531 kB / 435.2 MB, free: 6.102 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.0001199/0.333, allocations: 143.8 kB / 435.3 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.012e-05/0.3331, allocations: 29.17 kB / 435.3 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.344e-05/0.3331, allocations: 30 kB / 435.4 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.3331, allocations: 2.188 kB / 435.4 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3331, allocations: 3.938 kB / 435.4 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.3331, allocations: 1.031 kB / 435.4 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00027/0.3334, allocations: 290.3 kB / 435.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3334, allocations: 1.156 kB / 435.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001926/0.3336, allocations: 41 kB / 435.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3336, allocations: 3.375 kB / 435.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.3336, allocations: 5.781 kB / 435.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3336, allocations: 1.094 kB / 435.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.3336, allocations: 3.938 kB / 435.7 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004953/0.3341, allocations: 292.7 kB / 436 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.226e-05/0.3342, allocations: 94.27 kB / 436.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.606e-05/0.3342, allocations: 4.281 kB / 436.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.461e-05/0.3343, allocations: 16.02 kB / 436.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.105e-05/0.3344, allocations: 10.42 kB / 436.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.804e-05/0.3344, allocations: 10.34 kB / 436.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001892/0.3346, allocations: 192.8 kB / 436.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3346, allocations: 0 / 436.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003241/0.3349, allocations: 63.48 kB / 436.4 MB, free: 5.488 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.002029/0.3369, allocations: 1.121 MB / 437.5 MB, free: 4.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003541/0.3373, allocations: 138.6 kB / 437.6 MB, free: 4.812 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3373, allocations: 3.656 kB / 437.6 MB, free: 4.812 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.3374, allocations: 71.23 kB / 437.7 MB, free: 4.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003839/0.3378, allocations: 46.67 kB / 437.8 MB, free: 4.801 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/0.3406, allocations: 2.389 MB / 440.1 MB, free: 3.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000194/0.3408, allocations: 0.7478 MB / 440.9 MB, free: 2.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000134/0.341, allocations: 32.7 kB / 440.9 MB, free: 2.723 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.3411, allocations: 73.95 kB / 441 MB, free: 2.715 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3411, allocations: 1.094 kB / 441 MB, free: 2.715 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03258/0.3736, allocations: 5.412 MB / 446.4 MB, free: 1.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.211/8.585, allocations: 13.62 kB / 446.4 MB, free: 1.816 MB / 350.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 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.csv","/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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 24.738274969000486]