Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001339/0.001339, allocations: 105.4 kB / 19.8 MB, free: 2.516 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.001514/0.001514, allocations: 215.3 kB / 23 MB, free: 5.609 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.554/1.554, allocations: 230.2 MB / 256.2 MB, free: 8.535 MB / 206.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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003208/0.003208, allocations: 63.89 kB / 376.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.309, allocations: 53.32 MB / 429.8 MB, free: 7.598 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004226/0.3132, allocations: 2.085 MB / 431.9 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.3146, allocations: 0.6116 MB / 432.5 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.3148, allocations: 4 kB / 432.5 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001406/0.3149, allocations: 15.8 kB / 432.5 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001963/0.3151, allocations: 35.7 kB / 432.5 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003707/0.3155, allocations: 67.81 kB / 432.6 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002282/0.3157, allocations: 131.5 kB / 432.7 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.3159, allocations: 37.86 kB / 432.8 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.518e-05/0.316, allocations: 51.73 kB / 432.8 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.3161, allocations: 67.69 kB / 432.9 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.271e-05/0.3161, allocations: 8 kB / 432.9 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.251e-05/0.3161, allocations: 12 kB / 432.9 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.056e-05/0.3162, allocations: 39.84 kB / 432.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.125e-05/0.3163, allocations: 63.61 kB / 433 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002457/0.3165, allocations: 140.6 kB / 433.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.3165, allocations: 4 kB / 433.1 MB, free: 4.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3165, allocations: 0 / 433.1 MB, free: 4.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.3165, allocations: 3.938 kB / 433.1 MB, free: 4.219 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007377/0.3173, allocations: 462.6 kB / 433.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.3173, allocations: 8.031 kB / 433.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.913e-05/0.3174, allocations: 24.8 kB / 433.6 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003362/0.3177, allocations: 220 kB / 433.8 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.3177, allocations: 8.375 kB / 433.8 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.36e-05/0.3178, allocations: 16.38 kB / 433.9 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005835/0.3184, allocations: 250.9 kB / 434.1 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.3184, allocations: 7.938 kB / 434.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.754e-05/0.3184, allocations: 4 kB / 434.1 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.3184, allocations: 8 kB / 434.1 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002533/0.3187, allocations: 87.86 kB / 434.2 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007466/0.3194, allocations: 0.5999 MB / 434.8 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003531/0.3198, allocations: 147.8 kB / 435 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.3199, allocations: 66.64 kB / 435 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.3199, allocations: 7.984 kB / 435 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/0.32, allocations: 38.56 kB / 435.1 MB, free: 2.059 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.32, allocations: 0 / 435.1 MB, free: 2.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005427/0.3205, allocations: 189.3 kB / 435.2 MB, free: 1.867 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.996e-05/0.3206, allocations: 110.8 kB / 435.4 MB, free: 1.734 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.3208, allocations: 162.3 kB / 435.5 MB, free: 1.566 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.3208, allocations: 29.7 kB / 435.5 MB, free: 1.531 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.226e-05/0.3209, allocations: 116.4 kB / 435.7 MB, free: 1.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.3209, allocations: 27.84 kB / 435.7 MB, free: 1.387 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.401e-05/0.321, allocations: 37.7 kB / 435.7 MB, free: 1.344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3211, allocations: 322.8 kB / 436 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.3212, allocations: 35.97 kB / 436.1 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.3214, allocations: 133.7 kB / 436.2 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003047/0.3217, allocations: 193.8 kB / 436.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3217, allocations: 0 / 436.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003927/0.3221, allocations: 201.5 kB / 436.6 MB, free: 372 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.3221, allocations: 12.06 kB / 436.6 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.3222, allocations: 7.938 kB / 436.6 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.3222, allocations: 4 kB / 436.6 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.3223, allocations: 47.91 kB / 436.7 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.3223, allocations: 7.984 kB / 436.7 MB, free: 292 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.3224, allocations: 19.94 kB / 436.7 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.86e-05/0.3225, allocations: 12 kB / 436.7 MB, free: 260 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001499/0.3226, allocations: 141.7 kB / 436.8 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001748/0.3228, allocations: 89.53 kB / 436.9 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001256/0.3229, allocations: 24.7 kB / 436.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.3229, allocations: 4 kB / 437 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.3229, allocations: 0 / 437 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.3229, allocations: 4 kB / 437 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003572/0.3233, allocations: 217.4 kB / 437.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.3233, allocations: 3.984 kB / 437.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001847/0.3235, allocations: 35.92 kB / 437.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.3235, allocations: 0 / 437.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.3235, allocations: 4 kB / 437.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.3235, allocations: 4 kB / 437.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3235, allocations: 0 / 437.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005894/0.3241, allocations: 383.4 kB / 437.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.3242, allocations: 113 kB / 437.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.049e-05/0.3242, allocations: 8 kB / 437.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.3244, allocations: 4 kB / 437.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.991e-05/0.3244, allocations: 7.984 kB / 437.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/0.3244, allocations: 4 kB / 437.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001182/0.3246, allocations: 119.2 kB / 437.8 MB, free: 15 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3246, allocations: 0 / 437.8 MB, free: 15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003372/0.3249, allocations: 27.95 kB / 437.9 MB, free: 14.98 MB / 350.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 (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.0001458/0.325, allocations: 103.5 kB / 438 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003826/0.3254, allocations: 122.5 kB / 438.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3254, allocations: 0.9375 kB / 438.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.3255, allocations: 32 kB / 438.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005955/0.3261, allocations: 71.95 kB / 438.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009263/0.327, allocations: 425.4 kB / 438.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004342/0.3275, allocations: 0.7279 MB / 439.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.414e-05/0.3275, allocations: 9.422 kB / 439.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.963e-05/0.3276, allocations: 15.44 kB / 439.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of SimCode: time 1.382e-06/0.3276, allocations: 0 / 439.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of Templates: time 0.005114/0.3327, allocations: 1.417 MB / 440.8 MB, free: 12.05 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.7290043365210295]