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.0007888/0.0007888, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001329/0.001329, allocations: 169.1 kB / 24.91 MB, free: 9.211 MB / 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 0.9336/0.9336, allocations: 177.1 MB / 205.3 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] 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 1.493e-06/1.493e-06, allocations: 0 / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.606e-05/1.755e-05, allocations: 2.312 kB / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002265/0.002282, allocations: 2.06 MB / 275.5 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006548/0.002937, allocations: 0.5567 MB / 276 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.419e-05/0.003011, allocations: 8 kB / 276 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 8.563e-05/0.003097, allocations: 19.8 kB / 276.1 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.003198, allocations: 27.72 kB / 276.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001487/0.003346, allocations: 63.75 kB / 276.1 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.003464, allocations: 127.5 kB / 276.3 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.316e-05/0.003557, allocations: 46.19 kB / 276.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.152e-05/0.003639, allocations: 67.88 kB / 276.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.552e-05/0.003704, allocations: 39.88 kB / 276.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.003724, allocations: 12 kB / 276.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.274e-05/0.003736, allocations: 12 kB / 276.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.85e-05/0.003765, allocations: 31.84 kB / 276.5 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.325e-05/0.003798, allocations: 43.91 kB / 276.5 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.003923, allocations: 91.58 kB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.553e-06/0.003924, allocations: 0 / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.42e-07/0.003925, allocations: 0 / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.625e-06/0.003927, allocations: 0 / 276.6 MB, free: 14.1 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.000308/0.004235, allocations: 324.5 kB / 276.9 MB, free: 13.76 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.718e-05/0.004263, allocations: 8.031 kB / 276.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.157e-05/0.004294, allocations: 20.92 kB / 277 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.004416, allocations: 145.5 kB / 277.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.327e-06/0.004426, allocations: 12.38 kB / 277.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.004447, allocations: 16.36 kB / 277.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002107/0.004658, allocations: 211.8 kB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.004666, allocations: 192 / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.004676, allocations: 8.375 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.004682, allocations: 11.88 kB / 277.4 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.278e-05/0.004725, allocations: 31.98 kB / 277.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000316/0.005041, allocations: 453.9 kB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.00518, allocations: 107.9 kB / 277.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.93e-05/0.005219, allocations: 50.64 kB / 278 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.005233, allocations: 0 / 278 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.783e-05/0.005251, allocations: 42.5 kB / 278 MB, free: 12.53 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 9.92e-07/0.005252, allocations: 4 kB / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001406/0.005392, allocations: 89.59 kB / 278.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/0.005438, allocations: 114.8 kB / 278.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.538e-05/0.005493, allocations: 133.5 kB / 278.4 MB, free: 12.15 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.074e-05/0.005504, allocations: 29.7 kB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.621e-05/0.00554, allocations: 112 kB / 278.5 MB, free: 12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.472e-05/0.005555, allocations: 27.78 kB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.005584, allocations: 25.7 kB / 278.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.48e-05/0.005649, allocations: 326.8 kB / 278.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.007e-05/0.005659, allocations: 4 kB / 278.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.589e-05/0.005695, allocations: 66.97 kB / 278.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.231e-05/0.005757, allocations: 78.77 kB / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.00576, allocations: 4 kB / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.285e-05/0.005843, allocations: 85.55 kB / 279.1 MB, free: 11.33 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.758e-06/0.005853, allocations: 4 kB / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.005857, allocations: 4 kB / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.574e-06/0.005865, allocations: 0 / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.171e-05/0.005927, allocations: 27.98 kB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.005931, allocations: 7.922 kB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.375e-05/0.005965, allocations: 15.89 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.005971, allocations: 7.938 kB / 279.2 MB, free: 11.26 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 5.427e-05/0.006025, allocations: 122 kB / 279.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.018e-05/0.006085, allocations: 65.61 kB / 279.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.519e-05/0.00612, allocations: 16.78 kB / 279.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.006122, allocations: 0 / 279.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-06/0.006123, allocations: 0 / 279.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.006129, allocations: 7.984 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001111/0.00624, allocations: 89.75 kB / 279.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.006241, allocations: 4 kB / 279.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.982e-05/0.006321, allocations: 27.98 kB / 279.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.006324, allocations: 4 kB / 279.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.006336, allocations: 11.92 kB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.006337, allocations: 4 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.006338, allocations: 4 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001144/0.006453, allocations: 239.7 kB / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.097e-05/0.006464, allocations: 11.94 kB / 279.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.006478, allocations: 7.984 kB / 279.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.047e-05/0.006539, allocations: 12.06 kB / 279.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.102e-05/0.00656, allocations: 3.984 kB / 279.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.006565, allocations: 7.938 kB / 279.8 MB, free: 10.58 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.785e-05/0.006583, allocations: 24.84 kB / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006583, allocations: 0 / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001601/0.006743, allocations: 23.97 kB / 279.8 MB, free: 10.53 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 6.377e-05/0.006806, allocations: 84.42 kB / 279.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.525e-05/0.006882, allocations: 63.5 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.006885, allocations: 0 / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.607e-05/0.006901, allocations: 12.86 kB / 280 MB, free: 10.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.007136, allocations: 52.23 kB / 280 MB, free: 10.31 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004863/0.007623, allocations: 323.1 kB / 280.4 MB, free: 9.965 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.446e-05/0.007667, allocations: 75.33 kB / 280.4 MB, free: 9.871 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.471e-05/0.007692, allocations: 4.984 kB / 280.4 MB, free: 9.863 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.488e-05/0.007747, allocations: 67.36 kB / 280.5 MB, free: 9.797 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.007748, allocations: 0 / 280.5 MB, free: 9.797 MB / 266.7 MB Notification: Performance of Templates: time 0.002695/0.01044, allocations: 1.242 MB / 281.8 MB, free: 8.59 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.531153895892203]