Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001147/0.001147, allocations: 114.1 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001039/0.001039, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246.4 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 60.28 kB / 306.4 MB, free: 0.9258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1083, allocations: 50.54 MB / 357 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00408/0.1124, allocations: 2.064 MB / 359 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.1136, allocations: 0.5299 MB / 359.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.1138, allocations: 7.938 kB / 359.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.1139, allocations: 7.922 kB / 359.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.547e-05/0.1141, allocations: 23.8 kB / 359.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003357/0.1144, allocations: 51.94 kB / 359.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000203/0.1146, allocations: 115.6 kB / 359.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.1148, allocations: 57.41 kB / 359.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.509e-05/0.1149, allocations: 51.77 kB / 359.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.543e-05/0.115, allocations: 51.78 kB / 359.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.412e-05/0.115, allocations: 15.94 kB / 359.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.973e-05/0.1151, allocations: 8 kB / 359.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.005e-05/0.1151, allocations: 27.91 kB / 360 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.193e-05/0.1152, allocations: 59.67 kB / 360 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.1153, allocations: 123.8 kB / 360.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1153, allocations: 0 / 360.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1154, allocations: 4 kB / 360.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.1154, allocations: 0 / 360.2 MB, free: 11.18 MB / 302.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.0005646/0.1159, allocations: 431 kB / 360.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.116, allocations: 8.031 kB / 360.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.162e-05/0.116, allocations: 12.84 kB / 360.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002078/0.1162, allocations: 215.5 kB / 360.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.1163, allocations: 4.375 kB / 360.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.25e-05/0.1163, allocations: 12.38 kB / 360.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004847/0.1168, allocations: 238.9 kB / 361.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.1168, allocations: 0 / 361.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.1168, allocations: 4 kB / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.1168, allocations: 8 kB / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002347/0.1171, allocations: 87.88 kB / 361.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000621/0.1177, allocations: 0.5843 MB / 361.7 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.118, allocations: 159.8 kB / 361.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.1181, allocations: 70.64 kB / 362 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.1182, allocations: 4 kB / 362 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.1182, allocations: 38.55 kB / 362 MB, free: 9.098 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.1182, allocations: 3.938 kB / 362 MB, free: 9.094 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004953/0.1187, allocations: 177.3 kB / 362.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.864e-05/0.1188, allocations: 114.8 kB / 362.3 MB, free: 8.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.732e-05/0.1189, allocations: 130.1 kB / 362.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.1189, allocations: 29.7 kB / 362.4 MB, free: 8.602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.794e-05/0.119, allocations: 108 kB / 362.6 MB, free: 8.492 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.52e-05/0.119, allocations: 27.64 kB / 362.6 MB, free: 8.465 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.148e-05/0.1191, allocations: 37.84 kB / 362.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.1192, allocations: 322.8 kB / 362.9 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.1193, allocations: 35.97 kB / 363 MB, free: 8.062 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.1195, allocations: 128.8 kB / 363.1 MB, free: 7.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.1197, allocations: 184.6 kB / 363.3 MB, free: 7.664 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.1198, allocations: 4 kB / 363.3 MB, free: 7.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003391/0.1201, allocations: 189.2 kB / 363.5 MB, free: 7.469 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.1201, allocations: 4 kB / 363.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1201, allocations: 4 kB / 363.5 MB, free: 7.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.1202, allocations: 7.938 kB / 363.5 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.1203, allocations: 47.91 kB / 363.5 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.878e-05/0.1204, allocations: 8 kB / 363.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.855e-05/0.1205, allocations: 19.83 kB / 363.6 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.1205, allocations: 20.3 kB / 363.6 MB, free: 7.359 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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 9.146e-05/0.1206, allocations: 129.7 kB / 363.7 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.1207, allocations: 77.91 kB / 363.8 MB, free: 7.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.275e-05/0.1208, allocations: 24.75 kB / 363.8 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.1208, allocations: 7.938 kB / 363.8 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.1208, allocations: 0 / 363.8 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.1208, allocations: 3.984 kB / 363.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002522/0.1211, allocations: 197.6 kB / 364 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1211, allocations: 0 / 364 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001659/0.1212, allocations: 43.97 kB / 364 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1213, allocations: 0 / 364 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.1213, allocations: 7.938 kB / 364.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1213, allocations: 0 / 364.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1213, allocations: 0 / 364.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005042/0.1218, allocations: 379.3 kB / 364.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.428e-05/0.1218, allocations: 92.98 kB / 364.5 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.125e-05/0.1219, allocations: 3.938 kB / 364.5 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.122, allocations: 15.98 kB / 364.5 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.162e-05/0.1221, allocations: 0 / 364.5 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-06/0.1221, allocations: 4 kB / 364.5 MB, free: 6.289 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.411e-05/0.1221, allocations: 101.8 kB / 364.6 MB, free: 6.191 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1221, allocations: 4.062 kB / 364.6 MB, free: 6.188 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003212/0.1225, allocations: 24 kB / 364.7 MB, free: 6.164 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 9.664e-05/0.1226, allocations: 107.2 kB / 364.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003156/0.1229, allocations: 120.7 kB / 364.9 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1229, allocations: 4.125 kB / 364.9 MB, free: 5.926 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.176e-05/0.123, allocations: 27.97 kB / 364.9 MB, free: 5.898 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004997/0.1235, allocations: 66.19 kB / 365 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000687/0.1242, allocations: 429.6 kB / 365.4 MB, free: 5.383 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.1245, allocations: 0.7201 MB / 366.1 MB, free: 4.633 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.761e-05/0.1245, allocations: 12.59 kB / 366.1 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.349e-05/0.1246, allocations: 15.44 kB / 366.2 MB, free: 4.605 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1246, allocations: 0 / 366.2 MB, free: 4.605 MB / 302.1 MB Notification: Performance of Templates: time 0.003483/0.1281, allocations: 1.112 MB / 367.3 MB, free: 3.535 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches