Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001619/0.001619, allocations: 82.44 kB / 20.68 MB, free: 1.027 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.001552/0.001552, allocations: 164.5 kB / 23.95 MB, free: 4.156 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.476/1.476, allocations: 177.1 MB / 204.3 MB, free: 9.18 MB / 190.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: 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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.184e-06/2.184e-06, allocations: 0 / 325 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.542e-05/2.76e-05, allocations: 2.281 kB / 325 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003551/0.003579, allocations: 1.988 MB / 327 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.004766, allocations: 0.5184 MB / 327.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001519/0.004918, allocations: 7.312 kB / 327.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.005042, allocations: 13.12 kB / 327.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001009/0.005142, allocations: 24.61 kB / 327.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003387/0.005481, allocations: 61.62 kB / 327.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000227/0.005708, allocations: 126.4 kB / 327.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000171/0.005879, allocations: 44.89 kB / 327.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.006038, allocations: 69.02 kB / 327.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.597e-05/0.006134, allocations: 37.78 kB / 327.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.281e-05/0.006177, allocations: 9.719 kB / 327.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.681e-05/0.006204, allocations: 12.53 kB / 328 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.758e-05/0.006241, allocations: 30.03 kB / 328 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.434e-05/0.006316, allocations: 40.59 kB / 328 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.006545, allocations: 123.7 kB / 328.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.006547, allocations: 3.375 kB / 328.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.006548, allocations: 4 kB / 328.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.006554, allocations: 0 / 328.1 MB, free: 14.55 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.0006906/0.007245, allocations: 345.9 kB / 328.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.007284, allocations: 14.12 kB / 328.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.776e-05/0.007332, allocations: 15.22 kB / 328.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.007572, allocations: 145.2 kB / 328.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.007591, allocations: 10.25 kB / 328.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.126e-05/0.007632, allocations: 15.67 kB / 328.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005517/0.008184, allocations: 238.1 kB / 328.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.008201, allocations: 192 / 328.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.008219, allocations: 6.625 kB / 328.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.008229, allocations: 6.594 kB / 328.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.008513, allocations: 91.3 kB / 329 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006642/0.009177, allocations: 495.7 kB / 329.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002937/0.009471, allocations: 135.7 kB / 329.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001696/0.009641, allocations: 73.28 kB / 329.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.009668, allocations: 6.828 kB / 329.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.0097, allocations: 38.58 kB / 329.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.283e-06/0.009702, allocations: 0 / 329.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005564/0.01026, allocations: 179.1 kB / 329.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.46e-05/0.01034, allocations: 111 kB / 330 MB, free: 13.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.01047, allocations: 130 kB / 330.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.01049, allocations: 29.7 kB / 330.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.001e-05/0.01057, allocations: 113 kB / 330.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.779e-05/0.0106, allocations: 26.05 kB / 330.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.477e-05/0.01067, allocations: 22.89 kB / 330.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.01083, allocations: 324.4 kB / 330.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.01094, allocations: 33.73 kB / 330.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.01109, allocations: 89.19 kB / 330.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002594/0.01135, allocations: 115.9 kB / 330.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.01135, allocations: 0 / 330.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003206/0.01167, allocations: 139.9 kB / 331 MB, free: 12.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.01169, allocations: 6.75 kB / 331 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.0117, allocations: 3.062 kB / 331 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.01171, allocations: 2.375 kB / 331 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.01186, allocations: 34.48 kB / 331.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.01187, allocations: 2.938 kB / 331.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.271e-05/0.01196, allocations: 20.5 kB / 331.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.01198, allocations: 8.781 kB / 331.1 MB, free: 12.16 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.0001108/0.01209, allocations: 116.9 kB / 331.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/0.01224, allocations: 85.84 kB / 331.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.326e-05/0.01229, allocations: 16.73 kB / 331.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.01229, allocations: 2.188 kB / 331.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.0123, allocations: 5.75 kB / 331.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.0123, allocations: 1.484 kB / 331.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002395/0.01254, allocations: 137.4 kB / 331.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.01255, allocations: 5.219 kB / 331.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.01272, allocations: 36.11 kB / 331.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.01273, allocations: 2.031 kB / 331.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.01274, allocations: 1.688 kB / 331.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.01274, allocations: 2.094 kB / 331.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.01274, allocations: 0.6094 kB / 331.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005731/0.01332, allocations: 378.5 kB / 331.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.265e-05/0.01334, allocations: 17.48 kB / 331.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.449e-05/0.01336, allocations: 6.906 kB / 331.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.0135, allocations: 6.828 kB / 331.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.339e-05/0.01354, allocations: 8.188 kB / 331.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.01355, allocations: 5.156 kB / 331.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.085e-05/0.01362, allocations: 95.86 kB / 332 MB, free: 11.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01362, allocations: 0 / 332 MB, free: 11.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003086/0.01393, allocations: 29.78 kB / 332 MB, free: 11.45 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.0001121/0.01404, allocations: 107.4 kB / 332.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003079/0.01435, allocations: 90.25 kB / 332.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.01435, allocations: 5.156 kB / 332.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.01447, allocations: 30.88 kB / 332.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.01494, allocations: 50.23 kB / 332.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000666/0.0156, allocations: 329.2 kB / 332.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.01571, allocations: 100.3 kB / 332.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.354e-05/0.01576, allocations: 9.078 kB / 332.8 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.156e-05/0.0158, allocations: 21.34 kB / 332.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.0158, allocations: 1.156 kB / 332.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of Templates: time 0.004749/0.02055, allocations: 1.165 MB / 333.9 MB, free: 10.37 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.397601716220379]