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.00157/0.00157, allocations: 104.6 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00173/0.001729, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001821/0.001821, allocations: 60.08 kB / 307 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1149, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003385/0.1183, allocations: 2.009 MB / 359.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000904/0.1192, allocations: 0.5337 MB / 360.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.727e-05/0.1193, allocations: 7.938 kB / 360.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.1195, allocations: 15.8 kB / 360.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.188e-05/0.1196, allocations: 23.8 kB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002765/0.1198, allocations: 55.88 kB / 360.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001645/0.12, allocations: 119.6 kB / 360.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.1202, allocations: 61.39 kB / 360.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.7e-05/0.1203, allocations: 51.73 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.225e-05/0.1204, allocations: 51.77 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.794e-05/0.1204, allocations: 8 kB / 360.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.409e-05/0.1204, allocations: 12 kB / 360.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.658e-05/0.1205, allocations: 27.91 kB / 360.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.413e-05/0.1206, allocations: 59.67 kB / 360.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001776/0.1207, allocations: 119.8 kB / 360.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.1208, allocations: 0 / 360.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1208, allocations: 0 / 360.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1208, allocations: 4 kB / 360.7 MB, free: 10.89 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.0006282/0.1214, allocations: 423 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.1215, allocations: 8.031 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.24e-05/0.1215, allocations: 16.83 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000264/0.1218, allocations: 215.8 kB / 361.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/0.1218, allocations: 12.38 kB / 361.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/0.1219, allocations: 12.38 kB / 361.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005009/0.1224, allocations: 234.9 kB / 361.6 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.1224, allocations: 4 kB / 361.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.1224, allocations: 4 kB / 361.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.779e-06/0.1224, allocations: 11.98 kB / 361.6 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002505/0.1227, allocations: 83.86 kB / 361.7 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006629/0.1234, allocations: 0.5843 MB / 362.3 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002909/0.1237, allocations: 151.8 kB / 362.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.1238, allocations: 74.62 kB / 362.5 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.1239, allocations: 4 kB / 362.5 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.1239, allocations: 42.48 kB / 362.5 MB, free: 8.812 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.363e-06/0.1239, allocations: 4 kB / 362.5 MB, free: 8.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005164/0.1244, allocations: 181.3 kB / 362.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.131e-05/0.1245, allocations: 114.8 kB / 362.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.1246, allocations: 128.6 kB / 362.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.1247, allocations: 29.7 kB / 363 MB, free: 8.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.105e-05/0.1247, allocations: 108 kB / 363.1 MB, free: 8.207 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.684e-05/0.1248, allocations: 27.64 kB / 363.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.098e-05/0.1248, allocations: 33.84 kB / 363.1 MB, free: 8.141 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.125, allocations: 326.8 kB / 363.5 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.1251, allocations: 35.91 kB / 363.5 MB, free: 7.777 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.1253, allocations: 139.2 kB / 363.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002925/0.1256, allocations: 176.7 kB / 363.8 MB, free: 7.379 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1256, allocations: 0 / 363.8 MB, free: 7.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003653/0.126, allocations: 193.2 kB / 364 MB, free: 7.184 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.126, allocations: 8 kB / 364 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.126, allocations: 4 kB / 364 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.126, allocations: 7.938 kB / 364 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.1262, allocations: 43.91 kB / 364 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.1262, allocations: 4 kB / 364.1 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.982e-05/0.1263, allocations: 24.2 kB / 364.1 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.1263, allocations: 12 kB / 364.1 MB, free: 7.082 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.785e-05/0.1264, allocations: 129.7 kB / 364.2 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.1266, allocations: 85.91 kB / 364.3 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.152e-05/0.1266, allocations: 20.73 kB / 364.3 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.1266, allocations: 7.938 kB / 364.3 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1267, allocations: 0 / 364.3 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1267, allocations: 4 kB / 364.3 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002703/0.1269, allocations: 197.6 kB / 364.5 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.127, allocations: 0 / 364.5 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.1271, allocations: 32.22 kB / 364.6 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1271, allocations: 4 kB / 364.6 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.1271, allocations: 7.938 kB / 364.6 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.1272, allocations: 7.922 kB / 364.6 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1272, allocations: 4 kB / 364.6 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005382/0.1277, allocations: 375.4 kB / 364.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.35e-05/0.1278, allocations: 88.98 kB / 365 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.1278, allocations: 11.94 kB / 365 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.1279, allocations: 7.984 kB / 365 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/0.128, allocations: 4 kB / 365.1 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.128, allocations: 4 kB / 365.1 MB, free: 6.008 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.811e-05/0.1281, allocations: 106.6 kB / 365.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.234e-06/0.1281, allocations: 4.062 kB / 365.2 MB, free: 5.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003031/0.1284, allocations: 27.94 kB / 365.2 MB, free: 5.875 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.0001033/0.1285, allocations: 99.25 kB / 365.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003372/0.1288, allocations: 120.6 kB / 365.4 MB, free: 5.648 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1288, allocations: 8 kB / 365.4 MB, free: 5.641 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.889e-05/0.129, allocations: 31.91 kB / 365.4 MB, free: 5.609 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005074/0.1295, allocations: 51.27 kB / 365.5 MB, free: 5.562 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007195/0.1302, allocations: 389.8 kB / 365.9 MB, free: 5.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003154/0.1305, allocations: 0.7123 MB / 366.6 MB, free: 4.402 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.686e-05/0.1306, allocations: 16.59 kB / 366.6 MB, free: 4.387 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.365e-05/0.1306, allocations: 11.44 kB / 366.6 MB, free: 4.375 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1306, allocations: 0 / 366.6 MB, free: 4.375 MB / 302.1 MB Notification: Performance of Templates: time 0.00417/0.1348, allocations: 1.178 MB / 367.8 MB, free: 3.234 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.1.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