Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001758/0.001758, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.00168/0.00168, allocations: 186 kB / 24.46 MB, free: 3.863 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.386/1.386, allocations: 225.7 MB / 253.3 MB, free: 12.88 MB / 206.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.ClockedWithDiscreteController,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.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 51.92 kB / 371.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2411, allocations: 52.17 MB / 423.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003353/0.2444, allocations: 1.984 MB / 425.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009203/0.2453, allocations: 0.4948 MB / 426.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.157e-05/0.2454, allocations: 7.938 kB / 426.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001042/0.2455, allocations: 15.8 kB / 426.3 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001541/0.2457, allocations: 31.77 kB / 426.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002399/0.2459, allocations: 63.81 kB / 426.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001831/0.2461, allocations: 119.6 kB / 426.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.2463, allocations: 40.56 kB / 426.5 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.706e-05/0.2463, allocations: 51.78 kB / 426.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.587e-05/0.2464, allocations: 51.77 kB / 426.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.783e-05/0.2465, allocations: 12 kB / 426.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.19e-05/0.2465, allocations: 8 kB / 426.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.784e-05/0.2465, allocations: 31.84 kB / 426.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.897e-05/0.2466, allocations: 43.8 kB / 426.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002055/0.2468, allocations: 131.4 kB / 426.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2468, allocations: 0 / 426.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2468, allocations: 4 kB / 426.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.2468, allocations: 0 / 426.9 MB, free: 11.54 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.0005896/0.2474, allocations: 353.8 kB / 427.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.2474, allocations: 12.03 kB / 427.2 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.234e-05/0.2475, allocations: 16.84 kB / 427.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002686/0.2477, allocations: 157.8 kB / 427.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.2477, allocations: 8.375 kB / 427.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.689e-05/0.2478, allocations: 16.31 kB / 427.4 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005417/0.2483, allocations: 258.8 kB / 427.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.2483, allocations: 4 kB / 427.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.2484, allocations: 4 kB / 427.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.2484, allocations: 4 kB / 427.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000261/0.2486, allocations: 83.88 kB / 427.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006267/0.2493, allocations: 0.4886 MB / 428.3 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000352/0.2496, allocations: 139.9 kB / 428.4 MB, free: 9.867 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.2498, allocations: 74.62 kB / 428.5 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.2498, allocations: 0 / 428.5 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.2498, allocations: 38.56 kB / 428.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.082e-06/0.2498, allocations: 0 / 428.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005172/0.2503, allocations: 181.6 kB / 428.7 MB, free: 9.555 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.615e-05/0.2504, allocations: 126.8 kB / 428.8 MB, free: 9.406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.2505, allocations: 129.6 kB / 428.9 MB, free: 9.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.2506, allocations: 29.7 kB / 429 MB, free: 9.234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.706e-05/0.2506, allocations: 119.8 kB / 429.1 MB, free: 9.113 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.501e-05/0.2507, allocations: 23.84 kB / 429.1 MB, free: 9.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-05/0.2507, allocations: 37.7 kB / 429.1 MB, free: 9.047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.2508, allocations: 322.8 kB / 429.5 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.251, allocations: 35.97 kB / 429.5 MB, free: 8.688 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.2511, allocations: 135.6 kB / 429.6 MB, free: 8.508 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003039/0.2514, allocations: 197.4 kB / 429.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/0.2515, allocations: 4 kB / 429.8 MB, free: 8.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003703/0.2518, allocations: 193.3 kB / 430 MB, free: 8.066 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.2518, allocations: 8 kB / 430 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.2518, allocations: 4 kB / 430 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.2519, allocations: 4 kB / 430 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.252, allocations: 47.91 kB / 430.1 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.252, allocations: 4 kB / 430.1 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.2521, allocations: 27.83 kB / 430.1 MB, free: 7.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.2522, allocations: 12.28 kB / 430.1 MB, free: 7.961 MB / 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.000105/0.2523, allocations: 129.8 kB / 430.2 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001563/0.2524, allocations: 101.8 kB / 430.3 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.338e-05/0.2525, allocations: 20.7 kB / 430.4 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.2525, allocations: 0 / 430.4 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2525, allocations: 0 / 430.4 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.2525, allocations: 4 kB / 430.4 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002171/0.2527, allocations: 133.2 kB / 430.5 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2527, allocations: 0 / 430.5 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.2529, allocations: 39.91 kB / 430.5 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.429e-06/0.2529, allocations: 7.938 kB / 430.5 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.2529, allocations: 8 kB / 430.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2529, allocations: 0 / 430.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2529, allocations: 0 / 430.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005419/0.2535, allocations: 381.9 kB / 430.9 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.527e-05/0.2535, allocations: 19.86 kB / 430.9 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.2535, allocations: 0 / 430.9 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.2536, allocations: 8.062 kB / 430.9 MB, free: 7.059 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.678e-05/0.2537, allocations: 11.98 kB / 431 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-06/0.2537, allocations: 4 kB / 431 MB, free: 7.043 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.663e-05/0.2538, allocations: 102.8 kB / 431.1 MB, free: 6.945 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2538, allocations: 0 / 431.1 MB, free: 6.945 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003187/0.2541, allocations: 27.95 kB / 431.1 MB, free: 6.918 MB / 334.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.0001034/0.2542, allocations: 103.2 kB / 431.2 MB, free: 6.809 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003239/0.2545, allocations: 120.1 kB / 431.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2545, allocations: 0 / 431.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.2546, allocations: 31.91 kB / 431.3 MB, free: 6.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004672/0.2551, allocations: 47.95 kB / 431.4 MB, free: 6.613 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007132/0.2558, allocations: 432.6 kB / 431.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001051/0.2559, allocations: 101.6 kB / 431.9 MB, free: 6.035 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.148e-05/0.2559, allocations: 15.44 kB / 431.9 MB, free: 6.02 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2559, allocations: 0 / 431.9 MB, free: 6.02 MB / 334.1 MB Notification: Performance of Templates: time 0.003335/0.2593, allocations: 1.582 MB / 433.5 MB, free: 4.438 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.866239733994007]