Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 81.97 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 147.1 kB / 23.94 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 173.4 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 318.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.474e-05/2.62e-05, allocations: 5.094 kB / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002788/0.002814, allocations: 1.959 MB / 320.9 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008303/0.003645, allocations: 493 kB / 321.3 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.00375, allocations: 6.844 kB / 321.3 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001094/0.003859, allocations: 12.72 kB / 321.4 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.164e-05/0.003931, allocations: 27.45 kB / 321.4 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003059/0.004236, allocations: 57.47 kB / 321.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001782/0.004415, allocations: 128.8 kB / 321.6 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.004567, allocations: 42.86 kB / 321.6 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001293/0.004696, allocations: 67.98 kB / 321.7 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.764e-05/0.004774, allocations: 45.09 kB / 321.7 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.333e-05/0.004807, allocations: 10.69 kB / 321.7 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.32e-05/0.004831, allocations: 10.25 kB / 321.7 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.874e-05/0.004859, allocations: 26.95 kB / 321.8 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.449e-05/0.004914, allocations: 41.44 kB / 321.8 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.005112, allocations: 121 kB / 321.9 MB, free: 1.645 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.005116, allocations: 0 / 321.9 MB, free: 1.645 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.005117, allocations: 0 / 321.9 MB, free: 1.645 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.005121, allocations: 5 kB / 321.9 MB, free: 1.641 MB / 286.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.0005408/0.005662, allocations: 364.1 kB / 322.3 MB, free: 1.316 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.0057, allocations: 14.98 kB / 322.3 MB, free: 1.312 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.541e-05/0.005745, allocations: 15.62 kB / 322.3 MB, free: 1.305 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002254/0.005971, allocations: 144 kB / 322.5 MB, free: 1.16 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.005988, allocations: 13.88 kB / 322.5 MB, free: 1.152 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.676e-05/0.006025, allocations: 12.59 kB / 322.5 MB, free: 1.148 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004712/0.006496, allocations: 241.2 kB / 322.7 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.006512, allocations: 4.188 kB / 322.7 MB, free: 1 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.006528, allocations: 5.75 kB / 322.7 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.006535, allocations: 6.531 kB / 322.7 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000264/0.006799, allocations: 92.38 kB / 322.8 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004712/0.00727, allocations: 492.1 kB / 323.3 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002434/0.007513, allocations: 140 kB / 323.4 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001441/0.007658, allocations: 68.44 kB / 323.5 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.007684, allocations: 3.516 kB / 323.5 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.455e-05/0.007698, allocations: 37.52 kB / 323.5 MB, free: 328 kB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.0077, allocations: 0 / 323.5 MB, free: 328 kB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005034/0.008203, allocations: 179.1 kB / 323.7 MB, free: 248 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.00825, allocations: 116 kB / 323.8 MB, free: 112 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.14e-05/0.008331, allocations: 129.6 kB / 324 MB, free: 0 / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.875e-05/0.00837, allocations: 26.55 kB / 324 MB, free: 15.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.218e-05/0.008452, allocations: 117.4 kB / 324.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.008479, allocations: 21.61 kB / 324.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-05/0.008534, allocations: 26.08 kB / 324.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.008673, allocations: 323.9 kB / 324.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.008782, allocations: 26.58 kB / 324.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.008925, allocations: 88.2 kB / 324.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.009171, allocations: 117.2 kB / 324.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.009173, allocations: 0 / 324.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003077/0.00948, allocations: 135.8 kB / 324.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.009497, allocations: 5.5 kB / 324.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.009505, allocations: 7.297 kB / 324.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.009522, allocations: 2.75 kB / 324.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.009677, allocations: 34.89 kB / 324.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.009684, allocations: 1.969 kB / 324.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.698e-05/0.009771, allocations: 20.69 kB / 324.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.009781, allocations: 5.594 kB / 324.9 MB, free: 15.23 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.0001038/0.009885, allocations: 124.4 kB / 325 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.01004, allocations: 84.72 kB / 325.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.785e-05/0.01009, allocations: 17.05 kB / 325.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.01009, allocations: 3.062 kB / 325.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.0101, allocations: 1 kB / 325.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.01011, allocations: 1.547 kB / 325.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002261/0.01033, allocations: 130.1 kB / 325.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.01034, allocations: 1.375 kB / 325.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001788/0.01051, allocations: 43.55 kB / 325.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.01052, allocations: 1.422 kB / 325.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.01053, allocations: 3 kB / 325.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.01054, allocations: 1.281 kB / 325.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.01054, allocations: 2.078 kB / 325.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005853/0.01113, allocations: 376.3 kB / 325.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.257e-05/0.01115, allocations: 16.73 kB / 325.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.65e-05/0.01117, allocations: 7.594 kB / 325.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.01131, allocations: 10.14 kB / 325.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.11e-05/0.01137, allocations: 5.688 kB / 325.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.01138, allocations: 6.562 kB / 325.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.797e-05/0.01146, allocations: 96.56 kB / 325.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01146, allocations: 1.188 kB / 325.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003119/0.01177, allocations: 30.02 kB / 325.8 MB, free: 14.51 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.000116/0.01189, allocations: 102.3 kB / 325.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003022/0.01219, allocations: 97.56 kB / 326 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.01219, allocations: 0 / 326 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.0123, allocations: 30.33 kB / 326.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004921/0.01279, allocations: 53.59 kB / 326.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006445/0.01343, allocations: 330.2 kB / 326.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.879e-05/0.01353, allocations: 99.58 kB / 326.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.713e-05/0.01357, allocations: 10.77 kB / 326.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.848e-05/0.01361, allocations: 14.8 kB / 326.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.01361, allocations: 0 / 326.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of Templates: time 0.004413/0.01802, allocations: 1.166 MB / 327.7 MB, free: 13.9 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.248840749263763]