Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001547/0.001547, allocations: 112.5 kB / 18.45 MB, free: 4.605 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.001881/0.001881, allocations: 207.3 kB / 21.41 MB, free: 1.648 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.512/1.512, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.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.ExactlyClockedWithDiscreteController,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.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_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 47.92 kB / 374.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09868/0.1002, allocations: 53.33 MB / 427.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003748/0.1039, allocations: 2.056 MB / 429.5 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001286/0.1052, allocations: 0.6115 MB / 430.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001738/0.1054, allocations: 7.938 kB / 430.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.1055, allocations: 15.8 kB / 430.1 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002228/0.1058, allocations: 31.72 kB / 430.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000357/0.1061, allocations: 75.84 kB / 430.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002483/0.1064, allocations: 131.5 kB / 430.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.1065, allocations: 33.88 kB / 430.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.1066, allocations: 59.77 kB / 430.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001094/0.1067, allocations: 55.7 kB / 430.5 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.46e-05/0.1068, allocations: 12 kB / 430.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.409e-05/0.1068, allocations: 12 kB / 430.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.25e-05/0.1069, allocations: 27.92 kB / 430.6 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.6e-05/0.1069, allocations: 75.58 kB / 430.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.1072, allocations: 147.2 kB / 430.8 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1072, allocations: 3.938 kB / 430.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1072, allocations: 8 kB / 430.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.1072, allocations: 0 / 430.8 MB, free: 0.9102 MB / 350.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.0007465/0.108, allocations: 450.7 kB / 431.2 MB, free: 432 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.108, allocations: 12.03 kB / 431.3 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.666e-05/0.1081, allocations: 20.8 kB / 431.3 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003539/0.1084, allocations: 220.1 kB / 431.5 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.1084, allocations: 12.38 kB / 431.5 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.772e-05/0.1085, allocations: 12.38 kB / 431.5 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2033/0.3118, allocations: 255 kB / 431.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.591e-05/0.3118, allocations: 1.406 kB / 431.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.871e-05/0.3119, allocations: 7.906 kB / 431.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.3119, allocations: 4.25 kB / 431.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000397/0.3123, allocations: 87.42 kB / 431.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007814/0.3131, allocations: 0.5956 MB / 432.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004226/0.3135, allocations: 144.1 kB / 432.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/0.3137, allocations: 67.61 kB / 432.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.389e-05/0.3137, allocations: 5.797 kB / 432.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/0.3138, allocations: 48.5 kB / 432.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.695e-06/0.3138, allocations: 0 / 432.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006895/0.3145, allocations: 181.1 kB / 432.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.222e-05/0.3145, allocations: 119.4 kB / 433 MB, free: 10.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.3147, allocations: 153 kB / 433.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.3147, allocations: 30.64 kB / 433.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.023e-05/0.3148, allocations: 117.5 kB / 433.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.586e-05/0.3148, allocations: 27.41 kB / 433.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.614e-05/0.3149, allocations: 37.44 kB / 433.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.208e-05/0.3149, allocations: 322.3 kB / 433.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.3151, allocations: 40.66 kB / 433.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.3152, allocations: 143.3 kB / 433.9 MB, free: 9.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000305/0.3155, allocations: 185.7 kB / 434 MB, free: 9.715 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3156, allocations: 1.469 kB / 434 MB, free: 9.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004316/0.316, allocations: 197.8 kB / 434.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.316, allocations: 6.719 kB / 434.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.316, allocations: 2.594 kB / 434.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.694e-05/0.3161, allocations: 5.562 kB / 434.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.3162, allocations: 47.98 kB / 434.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.3162, allocations: 9.875 kB / 434.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001204/0.3163, allocations: 16.52 kB / 434.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.3164, allocations: 15.19 kB / 434.3 MB, free: 9.672 MB / 350.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.0001083/0.3165, allocations: 140.2 kB / 434.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/0.3166, allocations: 97.5 kB / 434.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.346e-05/0.3167, allocations: 19.53 kB / 434.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3167, allocations: 2.25 kB / 434.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.3167, allocations: 3.875 kB / 434.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3167, allocations: 0 / 434.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002662/0.317, allocations: 223.9 kB / 434.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.317, allocations: 0 / 434.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001756/0.3172, allocations: 37.72 kB / 434.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.3172, allocations: 1.5 kB / 434.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.3172, allocations: 6.953 kB / 434.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.3172, allocations: 1.438 kB / 434.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3172, allocations: 0.6562 kB / 434.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005702/0.3178, allocations: 385 kB / 435.2 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.939e-05/0.3179, allocations: 109.4 kB / 435.3 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.827e-05/0.3179, allocations: 1.281 kB / 435.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.318, allocations: 10.92 kB / 435.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.309e-05/0.3181, allocations: 6.953 kB / 435.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.3181, allocations: 9.578 kB / 435.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.302e-05/0.3182, allocations: 125.2 kB / 435.5 MB, free: 8.906 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3182, allocations: 1.094 kB / 435.5 MB, free: 8.906 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00035/0.3185, allocations: 28.98 kB / 435.5 MB, free: 8.902 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.0001126/0.3187, allocations: 107.2 kB / 435.6 MB, free: 8.812 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003779/0.319, allocations: 122 kB / 435.8 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.319, allocations: 1.062 kB / 435.8 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.3191, allocations: 32.41 kB / 435.8 MB, free: 8.793 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000534/0.3197, allocations: 67.22 kB / 435.9 MB, free: 8.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008119/0.3205, allocations: 453.5 kB / 436.3 MB, free: 8.473 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001843/0.3207, allocations: 0.7235 MB / 437 MB, free: 7.777 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.375e-05/0.3207, allocations: 15.91 kB / 437 MB, free: 7.77 MB / 350.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3207, allocations: 0 / 437 MB, free: 7.77 MB / 350.1 MB Notification: Performance of Templates: time 0.004794/0.3255, allocations: 1.644 MB / 438.7 MB, free: 7.656 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 7.5334742440027185]