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.001641/0.001641, allocations: 89.14 kB / 20.68 MB, free: 1.02 MB / 14.72 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.001887/0.001887, allocations: 158.8 kB / 23.95 MB, free: 4.152 MB / 14.72 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.458/1.458, allocations: 177 MB / 204.1 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] 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.684e-06/1.684e-06, allocations: 0 / 325 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.182e-05/2.351e-05, allocations: 3.344 kB / 325 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003674/0.003698, allocations: 1.974 MB / 327 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001153/0.00485, allocations: 0.5186 MB / 327.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.005009, allocations: 3.594 kB / 327.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000125/0.005134, allocations: 15.88 kB / 327.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.005238, allocations: 34.81 kB / 327.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003282/0.005566, allocations: 68.97 kB / 327.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000204/0.00577, allocations: 123.1 kB / 327.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.005928, allocations: 41.47 kB / 327.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.006073, allocations: 69.14 kB / 327.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.191e-05/0.006165, allocations: 36.42 kB / 327.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.966e-05/0.006205, allocations: 10.72 kB / 327.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.558e-05/0.006231, allocations: 11.06 kB / 327.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.499e-05/0.006276, allocations: 32.36 kB / 327.9 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.838e-05/0.006344, allocations: 39.2 kB / 328 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002485/0.006593, allocations: 126.4 kB / 328.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.006595, allocations: 4 kB / 328.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.12e-07/0.006595, allocations: 3.938 kB / 328.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.34e-05/0.006609, allocations: 0 / 328.1 MB, free: 14.52 MB / 302.1 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.0006874/0.007296, allocations: 348 kB / 328.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.007342, allocations: 13.53 kB / 328.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.595e-05/0.007418, allocations: 15.91 kB / 328.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002989/0.007716, allocations: 148.2 kB / 328.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.007731, allocations: 10.02 kB / 328.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.301e-05/0.007774, allocations: 20.95 kB / 328.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005341/0.008308, allocations: 227.9 kB / 328.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/0.008331, allocations: 9.453 kB / 328.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.008349, allocations: 5.594 kB / 328.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.008358, allocations: 7.203 kB / 328.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002734/0.008631, allocations: 86.19 kB / 329 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006508/0.009282, allocations: 493.2 kB / 329.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003102/0.009592, allocations: 138.9 kB / 329.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.009767, allocations: 69.84 kB / 329.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.009791, allocations: 2.859 kB / 329.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.009824, allocations: 37.69 kB / 329.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/0.009825, allocations: 5.125 kB / 329.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005642/0.01039, allocations: 174.6 kB / 329.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.998e-05/0.01047, allocations: 111.7 kB / 330 MB, free: 13.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.01059, allocations: 136.8 kB / 330.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.01062, allocations: 26.95 kB / 330.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.249e-05/0.01069, allocations: 112.9 kB / 330.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.877e-05/0.01072, allocations: 26.08 kB / 330.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.834e-05/0.01077, allocations: 22.39 kB / 330.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.01091, allocations: 328.3 kB / 330.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.01102, allocations: 34.42 kB / 330.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.01117, allocations: 76.8 kB / 330.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.01151, allocations: 116 kB / 330.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.01152, allocations: 1.125 kB / 330.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003258/0.01184, allocations: 131.2 kB / 331 MB, free: 12.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.01186, allocations: 5.781 kB / 331 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.01187, allocations: 7.156 kB / 331 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.01188, allocations: 6.875 kB / 331 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.01203, allocations: 25.33 kB / 331 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.01204, allocations: 3.047 kB / 331 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.581e-05/0.01213, allocations: 25.2 kB / 331 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.01214, allocations: 4.438 kB / 331 MB, free: 12.14 MB / 302.1 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 0.0001114/0.01225, allocations: 125.7 kB / 331.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.01241, allocations: 80.92 kB / 331.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.004e-05/0.01245, allocations: 15.8 kB / 331.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.01245, allocations: 7.312 kB / 331.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.01246, allocations: 0.5625 kB / 331.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.01246, allocations: 1.797 kB / 331.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002455/0.01271, allocations: 141.7 kB / 331.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.01271, allocations: 2.125 kB / 331.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.01288, allocations: 31.84 kB / 331.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.706e-06/0.01289, allocations: 1.156 kB / 331.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.0129, allocations: 6.812 kB / 331.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.01291, allocations: 1.125 kB / 331.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.01291, allocations: 1.672 kB / 331.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005818/0.01349, allocations: 384.9 kB / 331.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.459e-05/0.01352, allocations: 20.69 kB / 331.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.01354, allocations: 3.391 kB / 331.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.01368, allocations: 11.2 kB / 331.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.457e-05/0.01372, allocations: 4.438 kB / 331.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.01373, allocations: 4.188 kB / 331.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.592e-05/0.01381, allocations: 104.5 kB / 332 MB, free: 11.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.01381, allocations: 4.062 kB / 332 MB, free: 11.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003129/0.01412, allocations: 26.06 kB / 332 MB, free: 11.41 MB / 302.1 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 0.0001248/0.01425, allocations: 105.4 kB / 332.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003118/0.01456, allocations: 87.81 kB / 332.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01456, allocations: 0 / 332.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001072/0.01467, allocations: 35.2 kB / 332.2 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004908/0.01516, allocations: 55.86 kB / 332.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007189/0.01588, allocations: 329.1 kB / 332.6 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001153/0.01599, allocations: 101.2 kB / 332.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.516e-05/0.01604, allocations: 11.89 kB / 332.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.939e-05/0.01608, allocations: 15 kB / 332.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.01608, allocations: 0 / 332.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of Templates: time 0.004379/0.02046, allocations: 1.164 MB / 333.9 MB, free: 10.33 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.178372450172901]