Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 101.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 189.3 kB / 24.49 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 225.7 MB / 253.3 MB, free: 12.87 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 43.92 kB / 371.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2197, allocations: 52.18 MB / 423.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003467/0.2232, allocations: 2.149 MB / 425.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.2249, allocations: 1.017 MB / 426.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.36e-05/0.225, allocations: 4 kB / 426.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003113/0.2253, allocations: 91.5 kB / 426.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003154/0.2256, allocations: 123.2 kB / 426.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000363/0.226, allocations: 151.6 kB / 426.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00032/0.2263, allocations: 286.8 kB / 427.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.2265, allocations: 70.83 kB / 427.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.2266, allocations: 111.6 kB / 427.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.2268, allocations: 131.5 kB / 427.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.575e-05/0.2268, allocations: 20 kB / 427.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.227, allocations: 47.98 kB / 427.5 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.027e-05/0.227, allocations: 51.83 kB / 427.6 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.2272, allocations: 103.5 kB / 427.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003695/0.2275, allocations: 298.7 kB / 428 MB, free: 9.812 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2275, allocations: 0 / 428 MB, free: 9.812 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2275, allocations: 0 / 428 MB, free: 9.812 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.2275, allocations: 0 / 428 MB, free: 9.812 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.0007569/0.2283, allocations: 485.5 kB / 428.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.2283, allocations: 12.03 kB / 428.4 MB, free: 9.297 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.956e-05/0.2283, allocations: 8.188 kB / 428.5 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.182e-05/0.2284, allocations: 54.67 kB / 428.5 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.2285, allocations: 36.73 kB / 428.5 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.2288, allocations: 183.1 kB / 428.7 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.2289, allocations: 20.11 kB / 428.7 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.564e-05/0.2289, allocations: 16 kB / 428.8 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003314/0.2292, allocations: 165.4 kB / 428.9 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.2292, allocations: 3.953 kB / 428.9 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.146e-05/0.2293, allocations: 8 kB / 428.9 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.2293, allocations: 4 kB / 428.9 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002877/0.2296, allocations: 123.9 kB / 429.1 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008443/0.2304, allocations: 0.4953 MB / 429.5 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003263/0.2307, allocations: 158.5 kB / 429.7 MB, free: 7.941 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.2309, allocations: 79.08 kB / 429.8 MB, free: 7.863 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.2309, allocations: 4 kB / 429.8 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002311/0.2311, allocations: 123.6 kB / 429.9 MB, free: 7.727 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.784e-06/0.2311, allocations: 4 kB / 429.9 MB, free: 7.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005043/0.2316, allocations: 236 kB / 430.1 MB, free: 7.488 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.2317, allocations: 59.39 kB / 430.2 MB, free: 7.418 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00027/0.232, allocations: 264.9 kB / 430.5 MB, free: 7.152 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.232, allocations: 29.7 kB / 430.5 MB, free: 7.117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.2321, allocations: 144.4 kB / 430.6 MB, free: 6.969 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.459e-05/0.2322, allocations: 71.41 kB / 430.7 MB, free: 6.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.844e-05/0.2322, allocations: 45.7 kB / 430.7 MB, free: 6.848 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.2324, allocations: 326.8 kB / 431.1 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.2325, allocations: 51.97 kB / 431.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.2326, allocations: 99.33 kB / 431.2 MB, free: 6.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002457/0.2329, allocations: 145 kB / 431.3 MB, free: 6.207 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.2329, allocations: 4 kB / 431.4 MB, free: 6.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003628/0.2333, allocations: 207.2 kB / 431.6 MB, free: 5.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.2333, allocations: 8 kB / 431.6 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.2333, allocations: 0 / 431.6 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.2333, allocations: 8.031 kB / 431.6 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/0.2335, allocations: 51.92 kB / 431.6 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.2335, allocations: 3.984 kB / 431.6 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.369e-05/0.2336, allocations: 15.84 kB / 431.6 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.2336, allocations: 15.94 kB / 431.7 MB, free: 5.895 MB / 334.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.0001366/0.2338, allocations: 144.3 kB / 431.8 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.254e-05/0.2338, allocations: 27.86 kB / 431.8 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004189/0.2342, allocations: 222.6 kB / 432 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.2342, allocations: 0 / 432 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2342, allocations: 7.938 kB / 432 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.2342, allocations: 4 kB / 432.1 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002885/0.2345, allocations: 240.6 kB / 432.3 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2345, allocations: 3.938 kB / 432.3 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001897/0.2347, allocations: 35.92 kB / 432.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.2347, allocations: 4 kB / 432.3 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.2347, allocations: 7.984 kB / 432.3 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.2347, allocations: 3.938 kB / 432.3 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2348, allocations: 4 kB / 432.3 MB, free: 5.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005243/0.2353, allocations: 300.8 kB / 432.6 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.801e-05/0.2353, allocations: 27.89 kB / 432.7 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.2353, allocations: 7.938 kB / 432.7 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.2355, allocations: 11.98 kB / 432.7 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.923e-05/0.2355, allocations: 11.92 kB / 432.7 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.2355, allocations: 4 kB / 432.7 MB, free: 4.773 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001835/0.2357, allocations: 200.5 kB / 432.9 MB, free: 4.574 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2357, allocations: 0 / 432.9 MB, free: 4.574 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002764/0.236, allocations: 59.89 kB / 433 MB, free: 4.516 MB / 334.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 (22): * Single equations (assignments): 20 * 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.00224/0.2382, allocations: 1.177 MB / 434.1 MB, free: 3.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003334/0.2386, allocations: 139.9 kB / 434.3 MB, free: 3.363 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2386, allocations: 0 / 434.3 MB, free: 3.363 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001419/0.2387, allocations: 79.78 kB / 434.3 MB, free: 3.285 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.2391, allocations: 56.16 kB / 434.4 MB, free: 3.234 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/0.2421, allocations: 2.402 MB / 436.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001376/0.2422, allocations: 145.2 kB / 436.9 MB, free: 0.582 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.2424, allocations: 21.95 kB / 437 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.2425, allocations: 71.41 kB / 437 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2425, allocations: 0 / 437 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02887/0.2713, allocations: 5.859 MB / 442.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.14, allocations: 17.2 kB / 442.9 MB, free: 10.71 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 39.12064833403565]