Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.0008354/0.0008354, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001071/0.001906, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0007112/0.0007112, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00108/0.001791, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.015/1.015, allocations: 177.4 MB / 189.9 MB, free: 4.82 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08647/1.101, allocations: 53.87 MB / 243.8 MB, free: 14.88 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 4 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.544e-06/9.578e-06, allocations: 2.312 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002029/0.002039, allocations: 2.115 MB / 247.1 MB, free: 11.53 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000616/0.002655, allocations: 0.5684 MB / 247.7 MB, free: 10.96 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.184e-05/0.002726, allocations: 3.938 kB / 247.7 MB, free: 10.95 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.034e-05/0.002777, allocations: 23.73 kB / 247.7 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.876e-05/0.002846, allocations: 31.72 kB / 247.7 MB, free: 10.9 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001405/0.002986, allocations: 59.8 kB / 247.8 MB, free: 10.84 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001222/0.003108, allocations: 119.5 kB / 247.9 MB, free: 10.72 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.633e-05/0.003205, allocations: 46.23 kB / 248 MB, free: 10.68 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.003306, allocations: 87.8 kB / 248 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.391e-05/0.00337, allocations: 39.88 kB / 248.1 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.304e-05/0.003393, allocations: 8 kB / 248.1 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.431e-05/0.003407, allocations: 12 kB / 248.1 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.367e-05/0.003431, allocations: 19.94 kB / 248.1 MB, free: 10.51 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.62e-05/0.003467, allocations: 31.88 kB / 248.1 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001304/0.003597, allocations: 91.56 kB / 248.2 MB, free: 10.39 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.158e-06/0.003607, allocations: 0 / 248.2 MB, free: 10.39 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.003607, allocations: 4 kB / 248.2 MB, free: 10.39 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.003618, allocations: 0 / 248.2 MB, free: 10.39 MB / 250.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.0003844/0.004003, allocations: 348.1 kB / 248.6 MB, free: 10.02 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.472e-05/0.004027, allocations: 8.625 kB / 248.6 MB, free: 10.02 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.342e-05/0.004061, allocations: 20.92 kB / 248.6 MB, free: 9.996 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.004204, allocations: 137.6 kB / 248.7 MB, free: 9.836 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.178e-06/0.004213, allocations: 8.375 kB / 248.8 MB, free: 9.828 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.224e-05/0.004235, allocations: 20.36 kB / 248.8 MB, free: 9.809 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002222/0.004457, allocations: 199.8 kB / 249 MB, free: 9.586 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.00447, allocations: 12.16 kB / 249 MB, free: 9.574 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.004484, allocations: 4.375 kB / 249 MB, free: 9.57 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.004494, allocations: 7.938 kB / 249 MB, free: 9.562 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.359e-05/0.004547, allocations: 31.91 kB / 249 MB, free: 9.531 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003846/0.004932, allocations: 457.9 kB / 249.5 MB, free: 9.047 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001711/0.005103, allocations: 111.9 kB / 249.6 MB, free: 8.91 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.891e-05/0.005142, allocations: 34.66 kB / 249.6 MB, free: 8.867 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.005165, allocations: 8 kB / 249.6 MB, free: 8.859 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.00519, allocations: 38.55 kB / 249.7 MB, free: 8.812 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.005191, allocations: 0 / 249.7 MB, free: 8.812 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001597/0.005351, allocations: 97.53 kB / 249.8 MB, free: 8.711 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.005401, allocations: 110.8 kB / 249.9 MB, free: 8.578 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.765e-05/0.005469, allocations: 126.7 kB / 250 MB, free: 8.441 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/0.00548, allocations: 37.77 kB / 250 MB, free: 8.398 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.606e-05/0.005526, allocations: 112 kB / 250.1 MB, free: 8.285 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.067e-05/0.005546, allocations: 27.77 kB / 250.2 MB, free: 8.258 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.91e-05/0.005575, allocations: 25.72 kB / 250.2 MB, free: 8.227 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.005692, allocations: 322.8 kB / 250.5 MB, free: 7.902 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.164e-05/0.005703, allocations: 8 kB / 250.5 MB, free: 7.895 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.487e-05/0.005738, allocations: 66.77 kB / 250.6 MB, free: 7.805 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.403e-05/0.005802, allocations: 82.72 kB / 250.7 MB, free: 7.699 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.005804, allocations: 0 / 250.7 MB, free: 7.699 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.73e-05/0.005881, allocations: 85.47 kB / 250.7 MB, free: 7.609 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.005892, allocations: 4 kB / 250.7 MB, free: 7.605 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.005901, allocations: 4 kB / 250.7 MB, free: 7.602 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.544e-06/0.005908, allocations: 224 / 250.7 MB, free: 7.602 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.00602, allocations: 39.98 kB / 250.8 MB, free: 7.562 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.006024, allocations: 4 kB / 250.8 MB, free: 7.559 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.46e-05/0.006059, allocations: 15.88 kB / 250.8 MB, free: 7.543 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.989e-06/0.006064, allocations: 4 kB / 250.8 MB, free: 7.539 MB / 250.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.318e-05/0.006117, allocations: 121.7 kB / 250.9 MB, free: 7.41 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.718e-05/0.006174, allocations: 65.98 kB / 251 MB, free: 7.34 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.305e-05/0.006207, allocations: 16.78 kB / 251 MB, free: 7.324 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.006211, allocations: 4.234 kB / 251 MB, free: 7.32 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.006213, allocations: 0 / 251 MB, free: 7.32 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.006218, allocations: 7.984 kB / 251 MB, free: 7.312 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.006326, allocations: 89.8 kB / 251.1 MB, free: 7.207 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.006327, allocations: 0 / 251.1 MB, free: 7.207 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.532e-05/0.006422, allocations: 39.98 kB / 251.1 MB, free: 7.168 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.438e-05/0.006436, allocations: 19.83 kB / 251.2 MB, free: 7.148 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.006437, allocations: 0 / 251.2 MB, free: 7.148 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.006446, allocations: 4 kB / 251.2 MB, free: 7.145 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.006447, allocations: 0 / 251.2 MB, free: 7.145 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.006449, allocations: 3.938 kB / 251.2 MB, free: 7.141 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001129/0.006562, allocations: 239.6 kB / 251.4 MB, free: 6.887 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.006576, allocations: 12.03 kB / 251.4 MB, free: 6.875 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.688e-05/0.006633, allocations: 4 kB / 251.4 MB, free: 6.871 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.396e-05/0.006657, allocations: 7.984 kB / 251.4 MB, free: 6.863 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.006661, allocations: 4 kB / 251.4 MB, free: 6.859 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.684e-05/0.006678, allocations: 23.94 kB / 251.5 MB, free: 6.836 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006678, allocations: 0 / 251.5 MB, free: 6.836 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.00015/0.006828, allocations: 23.94 kB / 251.5 MB, free: 6.812 MB / 250.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 5.465e-05/0.006883, allocations: 92.17 kB / 251.6 MB, free: 6.719 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 7.635e-05/0.006959, allocations: 64.69 kB / 251.6 MB, free: 6.652 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.006963, allocations: 0 / 251.6 MB, free: 6.652 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.64e-05/0.006979, allocations: 12.86 kB / 251.6 MB, free: 6.637 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002216/0.007201, allocations: 59.28 kB / 251.7 MB, free: 6.578 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.008399, allocations: 316.3 kB / 252 MB, free: 6.23 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.01e-05/0.008439, allocations: 75.33 kB / 252.1 MB, free: 6.137 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.26e-05/0.008462, allocations: 4.984 kB / 252.1 MB, free: 6.133 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.131e-05/0.008513, allocations: 63.36 kB / 252.2 MB, free: 6.07 MB / 250.7 MB Notification: Performance of SimCode: time 4.81e-07/0.008513, allocations: 4 kB / 252.2 MB, free: 6.066 MB / 250.7 MB Notification: Performance of Templates: time 0.002489/0.011, allocations: 1.304 MB / 253.5 MB, free: 4.793 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.6226031025871634]