Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001523/0.001523, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001629/0.001629, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.519/1.519, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 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.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.346e-05/3.567e-05, allocations: 2.312 kB / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003736/0.003772, allocations: 1.986 MB / 274.3 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.004967, allocations: 0.5336 MB / 274.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.005094, allocations: 4 kB / 274.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.005224, allocations: 15.8 kB / 274.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.005398, allocations: 31.72 kB / 274.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003976/0.005796, allocations: 59.75 kB / 274.9 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002329/0.006029, allocations: 135.5 kB / 275.1 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.006196, allocations: 37.59 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.006341, allocations: 71.88 kB / 275.2 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.532e-05/0.006437, allocations: 35.88 kB / 275.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.315e-05/0.00647, allocations: 15.94 kB / 275.2 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.458e-05/0.006494, allocations: 12 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.304e-05/0.006537, allocations: 27.91 kB / 275.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.224e-05/0.00661, allocations: 39.91 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002672/0.006877, allocations: 135.4 kB / 275.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.006881, allocations: 0 / 275.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.006882, allocations: 4 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.006888, allocations: 0 / 275.4 MB, free: 14.7 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007199/0.007608, allocations: 349.8 kB / 275.8 MB, free: 14.33 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.007654, allocations: 12.03 kB / 275.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.345e-05/0.007727, allocations: 24.84 kB / 275.8 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.008059, allocations: 145.6 kB / 275.9 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.008077, allocations: 8.375 kB / 276 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.582e-05/0.008123, allocations: 16.33 kB / 276 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005823/0.008705, allocations: 247.2 kB / 276.2 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.008721, allocations: 4.125 kB / 276.2 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.00874, allocations: 4.375 kB / 276.2 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.008751, allocations: 7.938 kB / 276.2 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002814/0.009032, allocations: 87.88 kB / 276.3 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007022/0.009735, allocations: 0.4888 MB / 276.8 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000418/0.01015, allocations: 135.9 kB / 276.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.01034, allocations: 74.61 kB / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.01036, allocations: 4 kB / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.0104, allocations: 42.5 kB / 277.1 MB, free: 12.91 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.0104, allocations: 0 / 277.1 MB, free: 12.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005855/0.01099, allocations: 189.6 kB / 277.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.953e-05/0.01109, allocations: 114.8 kB / 277.4 MB, free: 12.58 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.01123, allocations: 126.1 kB / 277.5 MB, free: 12.44 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.01126, allocations: 33.7 kB / 277.5 MB, free: 12.4 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.783e-05/0.01134, allocations: 112.1 kB / 277.6 MB, free: 12.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.885e-05/0.01137, allocations: 27.78 kB / 277.6 MB, free: 12.26 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.338e-05/0.01143, allocations: 21.72 kB / 277.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.0116, allocations: 326.9 kB / 278 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.01171, allocations: 31.97 kB / 278 MB, free: 11.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001569/0.01187, allocations: 78.84 kB / 278.1 MB, free: 11.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002515/0.01212, allocations: 114.7 kB / 278.2 MB, free: 11.64 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.01212, allocations: 0 / 278.2 MB, free: 11.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003218/0.01244, allocations: 137.4 kB / 278.3 MB, free: 11.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.01246, allocations: 8 kB / 278.3 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.01247, allocations: 0 / 278.3 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.01249, allocations: 8.219 kB / 278.4 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.01262, allocations: 31.92 kB / 278.4 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.956e-06/0.01263, allocations: 4 kB / 278.4 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.01273, allocations: 19.88 kB / 278.4 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.01274, allocations: 4 kB / 278.4 MB, free: 11.42 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 0.0001352/0.01288, allocations: 125.8 kB / 278.5 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/0.01306, allocations: 97.58 kB / 278.6 MB, free: 11.19 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.719e-05/0.01314, allocations: 16.77 kB / 278.6 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.01315, allocations: 8 kB / 278.7 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.01316, allocations: 4 kB / 278.7 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.01316, allocations: 0 / 278.7 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002614/0.01342, allocations: 137.2 kB / 278.8 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.01342, allocations: 0 / 278.8 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001966/0.01362, allocations: 43.91 kB / 278.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.01362, allocations: 0 / 278.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.01365, allocations: 7.938 kB / 278.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.01365, allocations: 0 / 278.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.01365, allocations: 0 / 278.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006645/0.01431, allocations: 395.3 kB / 279.2 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.456e-05/0.01434, allocations: 11.98 kB / 279.2 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.894e-05/0.01437, allocations: 8 kB / 279.2 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.01451, allocations: 7.984 kB / 279.3 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.777e-05/0.01456, allocations: 0 / 279.3 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.01457, allocations: 8 kB / 279.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.71e-05/0.01467, allocations: 106.7 kB / 279.4 MB, free: 10.4 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01467, allocations: 0 / 279.4 MB, free: 10.4 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003182/0.01499, allocations: 27.94 kB / 279.4 MB, free: 10.38 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 (15): * Single equations (assignments): 15 * 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.0001763/0.01517, allocations: 107.2 kB / 279.5 MB, free: 10.26 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003322/0.0155, allocations: 91.88 kB / 279.6 MB, free: 10.17 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.0155, allocations: 0 / 279.6 MB, free: 10.17 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.01561, allocations: 27.92 kB / 279.6 MB, free: 10.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005166/0.01613, allocations: 64.22 kB / 279.7 MB, free: 10.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007367/0.01687, allocations: 343.2 kB / 280 MB, free: 9.719 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001149/0.01698, allocations: 101.3 kB / 280.1 MB, free: 9.598 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.121e-05/0.01702, allocations: 12.95 kB / 280.1 MB, free: 9.586 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.323e-05/0.01707, allocations: 16.5 kB / 280.1 MB, free: 9.57 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01707, allocations: 0 / 280.1 MB, free: 9.57 MB / 266.7 MB Notification: Performance of Templates: time 0.004383/0.02145, allocations: 1.204 MB / 281.3 MB, free: 8.398 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.447164669982158]