Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.009961/0.009961, allocations: 107.9 kB / 21.97 MB, free: 5.184 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.002541/0.002541, allocations: 218.2 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.481/1.481, allocations: 230.6 MB / 259 MB, free: 8.051 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-beta.om/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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_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-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 68.08 kB / 379.8 MB, free: 2.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2161, allocations: 53.36 MB / 433.1 MB, free: 7.176 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003917/0.22, allocations: 2.047 MB / 435.2 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001084/0.2211, allocations: 0.5726 MB / 435.8 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00012/0.2212, allocations: 7.938 kB / 435.8 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001213/0.2214, allocations: 15.8 kB / 435.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00015/0.2215, allocations: 31.73 kB / 435.8 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.2218, allocations: 63.19 kB / 435.9 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001887/0.222, allocations: 119.6 kB / 436 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.2221, allocations: 49.55 kB / 436 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.267e-05/0.2222, allocations: 55.73 kB / 436.1 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.358e-05/0.2223, allocations: 55.77 kB / 436.2 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.93e-05/0.2223, allocations: 12 kB / 436.2 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.027e-05/0.2223, allocations: 8 kB / 436.2 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.531e-05/0.2224, allocations: 31.84 kB / 436.2 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.512e-05/0.2225, allocations: 59.67 kB / 436.3 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002096/0.2227, allocations: 128.9 kB / 436.4 MB, free: 3.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2227, allocations: 0 / 436.4 MB, free: 3.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2227, allocations: 0 / 436.4 MB, free: 3.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.2227, allocations: 0 / 436.4 MB, free: 3.918 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006314/0.2233, allocations: 369.8 kB / 436.7 MB, free: 3.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.2234, allocations: 8.031 kB / 436.8 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.885e-05/0.2234, allocations: 16.84 kB / 436.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.2237, allocations: 158.2 kB / 436.9 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.2237, allocations: 12.38 kB / 436.9 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.304e-05/0.2237, allocations: 12.38 kB / 437 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005037/0.2242, allocations: 246.9 kB / 437.2 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.2243, allocations: 0 / 437.2 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.2243, allocations: 4 kB / 437.2 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.2243, allocations: 4 kB / 437.2 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002453/0.2245, allocations: 87.88 kB / 437.3 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000654/0.2252, allocations: 0.5349 MB / 437.8 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.2255, allocations: 143.8 kB / 438 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.2257, allocations: 66.64 kB / 438 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.2257, allocations: 8 kB / 438 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.2257, allocations: 34.56 kB / 438.1 MB, free: 2.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.312e-06/0.2257, allocations: 0 / 438.1 MB, free: 2.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005493/0.2263, allocations: 185.6 kB / 438.3 MB, free: 1.867 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.412e-05/0.2264, allocations: 119 kB / 438.4 MB, free: 1.727 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.2265, allocations: 130.3 kB / 438.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.2265, allocations: 33.64 kB / 438.5 MB, free: 1.551 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.152e-05/0.2266, allocations: 116.1 kB / 438.6 MB, free: 1.434 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.013e-05/0.2266, allocations: 27.78 kB / 438.7 MB, free: 1.406 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.173e-05/0.2267, allocations: 33.72 kB / 438.7 MB, free: 1.367 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.2268, allocations: 318.8 kB / 439 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.2269, allocations: 43.91 kB / 439.1 MB, free: 1.004 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.2271, allocations: 140.5 kB / 439.2 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002961/0.2274, allocations: 189.5 kB / 439.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2274, allocations: 0 / 439.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003801/0.2278, allocations: 197.5 kB / 439.6 MB, free: 396 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.2278, allocations: 14.8 kB / 439.6 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.2278, allocations: 4 kB / 439.6 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.2278, allocations: 4 kB / 439.6 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.228, allocations: 48.16 kB / 439.6 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.228, allocations: 7.984 kB / 439.6 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.2281, allocations: 19.89 kB / 439.7 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.2281, allocations: 8 kB / 439.7 MB, free: 292 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.0001092/0.2282, allocations: 141.8 kB / 439.8 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/0.2284, allocations: 97.55 kB / 439.9 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.152e-05/0.2285, allocations: 12.72 kB / 439.9 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2285, allocations: 4 kB / 439.9 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.2285, allocations: 0 / 439.9 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.2285, allocations: 0 / 439.9 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002838/0.2288, allocations: 180.6 kB / 440.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2288, allocations: 0 / 440.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.2289, allocations: 39.91 kB / 440.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.2289, allocations: 4 kB / 440.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.229, allocations: 8 kB / 440.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.229, allocations: 0 / 440.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.229, allocations: 0 / 440.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005393/0.2295, allocations: 387.4 kB / 440.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.956e-05/0.2295, allocations: 12.03 kB / 440.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.2295, allocations: 3.938 kB / 440.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.2297, allocations: 15.98 kB / 440.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.275e-05/0.2297, allocations: 0 / 440.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.2297, allocations: 4 kB / 440.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.038e-05/0.2298, allocations: 107.2 kB / 440.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2298, allocations: 0 / 440.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003454/0.2301, allocations: 24 kB / 440.7 MB, free: 15.18 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.000108/0.2302, allocations: 107.8 kB / 440.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003308/0.2306, allocations: 111.8 kB / 440.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2306, allocations: 4.875 kB / 440.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.2307, allocations: 39.91 kB / 441 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.2311, allocations: 47.94 kB / 441 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007691/0.2319, allocations: 430.7 kB / 441.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.2323, allocations: 0.7123 MB / 442.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.513e-05/0.2323, allocations: 19.42 kB / 442.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2323, allocations: 0 / 442.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of Templates: time 0.003508/0.2358, allocations: 1.548 MB / 443.7 MB, free: 12.12 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 6.914031885098666]