Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001395/0.001395, allocations: 87.67 kB / 21.19 MB, free: 3.367 MB / 18.57 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.0012/0.0012, allocations: 156.5 kB / 24.55 MB, free: 12 kB / 18.57 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.025/1.025, allocations: 177 MB / 204.9 MB, free: 5.566 MB / 186.7 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: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.986e-05/2.147e-05, allocations: 6.312 kB / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002482/0.002504, allocations: 2.07 MB / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008253/0.003329, allocations: 0.5141 MB / 275.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.003453, allocations: 7.938 kB / 275.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.003613, allocations: 15.8 kB / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.928e-05/0.003682, allocations: 27.72 kB / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.003976, allocations: 59.8 kB / 275.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001811/0.004157, allocations: 123.5 kB / 275.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.004309, allocations: 45.58 kB / 275.7 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.004458, allocations: 71.8 kB / 275.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.571e-05/0.004533, allocations: 39.89 kB / 275.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.243e-05/0.004556, allocations: 8 kB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.75e-05/0.004593, allocations: 12 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.274e-05/0.004626, allocations: 31.84 kB / 275.9 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.335e-05/0.004669, allocations: 31.92 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001545/0.004824, allocations: 87.7 kB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.004826, allocations: 3.938 kB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.004827, allocations: 0 / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.004831, allocations: 11.94 kB / 276 MB, free: 14.29 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004495/0.005281, allocations: 444.1 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.00532, allocations: 11.98 kB / 276.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.159e-05/0.005372, allocations: 28.84 kB / 276.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/0.005546, allocations: 156.3 kB / 276.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.005558, allocations: 12.38 kB / 276.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.236e-05/0.005601, allocations: 12.38 kB / 276.7 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003291/0.00593, allocations: 228.7 kB / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.005941, allocations: 4.188 kB / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.005955, allocations: 4.375 kB / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.005965, allocations: 7.938 kB / 276.9 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.556e-05/0.006041, allocations: 39.91 kB / 277 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005152/0.006556, allocations: 0.6329 MB / 277.6 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001649/0.006721, allocations: 141.3 kB / 277.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.294e-05/0.006784, allocations: 55.14 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.006806, allocations: 0 / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.006832, allocations: 45.38 kB / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.006833, allocations: 0 / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002263/0.00706, allocations: 113.5 kB / 277.9 MB, free: 12.17 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.007114, allocations: 115.1 kB / 278.1 MB, free: 12.03 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.96e-05/0.007204, allocations: 193 kB / 278.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.007215, allocations: 29.7 kB / 278.3 MB, free: 11.79 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.321e-05/0.007278, allocations: 166.7 kB / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.795e-05/0.007296, allocations: 19.84 kB / 278.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.655e-05/0.007332, allocations: 35.36 kB / 278.5 MB, free: 11.56 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.007439, allocations: 0.4922 MB / 279 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.387e-05/0.007463, allocations: 11.92 kB / 279 MB, free: 11.05 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.193e-05/0.007515, allocations: 81.48 kB / 279.1 MB, free: 10.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.025e-05/0.007605, allocations: 105.4 kB / 279.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.007608, allocations: 0 / 279.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001119/0.00772, allocations: 105.4 kB / 279.3 MB, free: 10.69 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.007735, allocations: 4 kB / 279.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.007741, allocations: 4 kB / 279.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.007762, allocations: 4 kB / 279.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.007865, allocations: 28.2 kB / 279.3 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.007872, allocations: 3.938 kB / 279.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.927e-05/0.007911, allocations: 23.81 kB / 279.4 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.007922, allocations: 4 kB / 279.4 MB, free: 10.62 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 8.072e-05/0.008003, allocations: 160.6 kB / 279.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.856e-05/0.008091, allocations: 81.52 kB / 279.6 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.159e-05/0.008133, allocations: 16.78 kB / 279.6 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.008137, allocations: 4 kB / 279.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.008141, allocations: 0 / 279.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.008145, allocations: 3.984 kB / 279.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.008289, allocations: 156.4 kB / 279.8 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.008292, allocations: 0 / 279.8 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.708e-05/0.008379, allocations: 31.92 kB / 279.8 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.008383, allocations: 4 kB / 279.8 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.0084, allocations: 4 kB / 279.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.008402, allocations: 4 kB / 279.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.008403, allocations: 0 / 279.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002424/0.008645, allocations: 402.7 kB / 280.2 MB, free: 9.691 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.352e-05/0.008659, allocations: 12.14 kB / 280.2 MB, free: 9.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.442e-05/0.008673, allocations: 4 kB / 280.2 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.85e-05/0.008732, allocations: 12.02 kB / 280.2 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.934e-05/0.008771, allocations: 11.92 kB / 280.2 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.008777, allocations: 8 kB / 280.3 MB, free: 9.645 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.459e-05/0.008822, allocations: 139.2 kB / 280.4 MB, free: 9.508 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008822, allocations: 3.938 kB / 280.4 MB, free: 9.504 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000186/0.009008, allocations: 31.88 kB / 280.4 MB, free: 9.473 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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 Backend phase and start with SimCode phase: time 7.24e-05/0.00908, allocations: 99.25 kB / 280.5 MB, free: 9.367 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001291/0.009209, allocations: 71.78 kB / 280.6 MB, free: 9.293 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.00921, allocations: 0 / 280.6 MB, free: 9.293 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.207e-05/0.009232, allocations: 15.69 kB / 280.6 MB, free: 9.273 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.009564, allocations: 46.97 kB / 280.7 MB, free: 9.227 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006796/0.01024, allocations: 334.8 kB / 281 MB, free: 8.863 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.548e-05/0.01029, allocations: 79.27 kB / 281.1 MB, free: 8.766 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.519e-05/0.01031, allocations: 8.484 kB / 281.1 MB, free: 8.758 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.495e-05/0.01035, allocations: 12.5 kB / 281.1 MB, free: 8.742 MB / 266.7 MB Notification: Performance of SimCode: time 6.82e-07/0.01035, allocations: 0 / 281.1 MB, free: 8.742 MB / 266.7 MB Notification: Performance of Templates: time 0.003019/0.01337, allocations: 1.185 MB / 282.3 MB, free: 7.609 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8408739832229912]