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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001836/0.001836, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002304/0.002305, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.055/2.055, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002292/0.002292, allocations: 67.88 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4113/0.4136, allocations: 50.54 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.006208/0.4199, allocations: 2.25 MB / 412.2 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003891/0.4238, allocations: 1.223 MB / 413.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002557/0.4241, allocations: 4 kB / 413.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005636/0.4248, allocations: 91.5 kB / 413.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008102/0.4256, allocations: 159.1 kB / 413.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005537/0.4262, allocations: 123.6 kB / 413.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006016/0.4268, allocations: 294.8 kB / 414 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003241/0.4272, allocations: 92.56 kB / 414.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003092/0.4275, allocations: 111.6 kB / 414.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000353/0.4279, allocations: 131.4 kB / 414.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.043e-05/0.428, allocations: 16 kB / 414.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002516/0.4282, allocations: 51.98 kB / 414.4 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001299/0.4284, allocations: 55.81 kB / 414.5 MB, free: 13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002299/0.4287, allocations: 123.4 kB / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000652/0.4293, allocations: 296.1 kB / 414.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.4294, allocations: 0 / 414.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4294, allocations: 0 / 414.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.073e-05/0.4294, allocations: 0 / 414.9 MB, free: 12.6 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.001444/0.4309, allocations: 0.5456 MB / 415.4 MB, free: 12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.4309, allocations: 12.03 kB / 415.5 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002897/0.4312, allocations: 36.55 kB / 415.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006326/0.4319, allocations: 255.7 kB / 415.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.623e-05/0.432, allocations: 12.38 kB / 415.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.324e-05/0.432, allocations: 24.12 kB / 415.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005695/0.4326, allocations: 157.6 kB / 415.9 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.85e-05/0.4327, allocations: 11.84 kB / 415.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.386e-05/0.4327, allocations: 8 kB / 415.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.741e-05/0.4328, allocations: 4 kB / 416 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004636/0.4332, allocations: 119.7 kB / 416.1 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.4347, allocations: 0.5624 MB / 416.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005591/0.4353, allocations: 173.1 kB / 416.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002746/0.4356, allocations: 88.83 kB / 416.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.326e-05/0.4357, allocations: 0 / 416.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00038/0.4361, allocations: 115.3 kB / 417 MB, free: 10.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 3.166e-06/0.4361, allocations: 0 / 417 MB, free: 10.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0008797/0.437, allocations: 233.7 kB / 417.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.437, allocations: 51.41 kB / 417.3 MB, free: 10.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004702/0.4375, allocations: 264.9 kB / 417.5 MB, free: 9.762 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.4376, allocations: 29.7 kB / 417.6 MB, free: 9.727 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.4378, allocations: 144.4 kB / 417.7 MB, free: 9.582 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.4379, allocations: 71 kB / 417.8 MB, free: 9.512 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.438, allocations: 45.64 kB / 417.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.4382, allocations: 338.8 kB / 418.2 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002025/0.4384, allocations: 47.98 kB / 418.2 MB, free: 9.074 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002589/0.4387, allocations: 95.33 kB / 418.3 MB, free: 8.969 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004723/0.4392, allocations: 146.3 kB / 418.4 MB, free: 8.816 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.4392, allocations: 0 / 418.4 MB, free: 8.816 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006696/0.4399, allocations: 201.2 kB / 418.6 MB, free: 8.613 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.4399, allocations: 16.03 kB / 418.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.44, allocations: 0 / 418.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.44, allocations: 0 / 418.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000423/0.4404, allocations: 51.97 kB / 418.7 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.294e-05/0.4405, allocations: 3.938 kB / 418.7 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001892/0.4407, allocations: 11.84 kB / 418.7 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.621e-05/0.4407, allocations: 12 kB / 418.7 MB, free: 8.52 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.0002313/0.441, allocations: 149.6 kB / 418.9 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8e-05/0.4411, allocations: 23.72 kB / 418.9 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001339/0.4412, allocations: 38.17 kB / 418.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.4413, allocations: 0 / 418.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.4413, allocations: 3.938 kB / 418.9 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.4413, allocations: 0 / 418.9 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005161/0.4418, allocations: 289.4 kB / 419.2 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.4418, allocations: 0 / 419.2 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003407/0.4422, allocations: 35.92 kB / 419.3 MB, free: 7.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.4422, allocations: 0 / 419.3 MB, free: 7.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/0.4423, allocations: 8 kB / 419.3 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.4423, allocations: 0 / 419.3 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.4423, allocations: 3.938 kB / 419.3 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008604/0.4432, allocations: 283.1 kB / 419.5 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/0.4433, allocations: 108.8 kB / 419.6 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.538e-05/0.4434, allocations: 0 / 419.6 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.4435, allocations: 15.88 kB / 419.7 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.773e-05/0.4436, allocations: 11.92 kB / 419.7 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-05/0.4437, allocations: 15.98 kB / 419.7 MB, free: 7.457 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003827/0.4441, allocations: 192.5 kB / 419.9 MB, free: 7.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.4441, allocations: 0 / 419.9 MB, free: 7.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005118/0.4446, allocations: 55.98 kB / 419.9 MB, free: 7.215 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.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.001756/0.4464, allocations: 405.7 kB / 420.3 MB, free: 6.953 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006036/0.447, allocations: 139.3 kB / 420.5 MB, free: 6.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.447, allocations: 3.938 kB / 420.5 MB, free: 6.816 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002604/0.4473, allocations: 76.08 kB / 420.5 MB, free: 6.742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006488/0.448, allocations: 63.12 kB / 420.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.4498, allocations: 0.5576 MB / 421.2 MB, free: 6.094 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005673/0.4504, allocations: 0.752 MB / 421.9 MB, free: 5.312 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.4506, allocations: 23.44 kB / 421.9 MB, free: 5.289 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4506, allocations: 3.938 kB / 421.9 MB, free: 5.285 MB / 334.1 MB Notification: Performance of Templates: time 0.01067/0.4613, allocations: 3.24 MB / 425.2 MB, free: 2.047 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (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 & ./Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches