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) 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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007983/0.0007983, allocations: 91.81 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009539/0.000954, allocations: 199 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002539/0.000254, allocations: 4 kB / 307.7 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1025, allocations: 51.52 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002764/0.1053, allocations: 1.708 MB / 361 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.1064, allocations: 0.5533 MB / 361.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.1066, allocations: 7.938 kB / 361.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.1067, allocations: 7.922 kB / 361.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000173/0.1069, allocations: 23.78 kB / 361.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.1072, allocations: 59.33 kB / 361.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002293/0.1074, allocations: 115.6 kB / 361.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001982/0.1076, allocations: 57.02 kB / 361.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.1078, allocations: 43.73 kB / 361.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.1079, allocations: 43.78 kB / 361.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.532e-05/0.1079, allocations: 4 kB / 361.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.081e-05/0.1079, allocations: 8 kB / 361.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.066e-05/0.108, allocations: 23.84 kB / 361.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.642e-05/0.1081, allocations: 73.44 kB / 362 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001982/0.1083, allocations: 115.8 kB / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.1083, allocations: 0 / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1083, allocations: 0 / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.1083, allocations: 0 / 362.1 MB, free: 10.45 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007319/0.1091, allocations: 415.2 kB / 362.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.1091, allocations: 8.031 kB / 362.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.379e-05/0.1092, allocations: 20.73 kB / 362.5 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000244/0.1094, allocations: 204.1 kB / 362.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.1095, allocations: 8.375 kB / 362.7 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.853e-05/0.1095, allocations: 12.38 kB / 362.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005767/0.1101, allocations: 258.9 kB / 363 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.1101, allocations: 3.906 kB / 363 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.1101, allocations: 4 kB / 363 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.1102, allocations: 4 kB / 363 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002771/0.1104, allocations: 99.88 kB / 363.1 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006874/0.1111, allocations: 0.5959 MB / 363.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003446/0.1115, allocations: 151.9 kB / 363.8 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/0.1117, allocations: 82.62 kB / 363.9 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.1117, allocations: 4 kB / 363.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.1117, allocations: 42.55 kB / 364 MB, free: 8.332 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.1118, allocations: 3.938 kB / 364 MB, free: 8.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005307/0.1123, allocations: 197.8 kB / 364.2 MB, free: 8.129 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.596e-05/0.1124, allocations: 114.8 kB / 364.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.789e-05/0.1125, allocations: 132.6 kB / 364.4 MB, free: 7.852 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.1125, allocations: 25.7 kB / 364.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.335e-05/0.1126, allocations: 119.7 kB / 364.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.471e-05/0.1126, allocations: 27.7 kB / 364.6 MB, free: 7.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.31e-05/0.1127, allocations: 21.7 kB / 364.6 MB, free: 7.645 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1128, allocations: 318.8 kB / 364.9 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.1129, allocations: 48 kB / 365 MB, free: 7.277 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.1131, allocations: 140.9 kB / 365.1 MB, free: 7.094 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002949/0.1134, allocations: 201.6 kB / 365.3 MB, free: 6.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1134, allocations: 3.984 kB / 365.3 MB, free: 6.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003715/0.1138, allocations: 213.4 kB / 365.5 MB, free: 6.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.1138, allocations: 4 kB / 365.5 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.1138, allocations: 4 kB / 365.5 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.1139, allocations: 8 kB / 365.5 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001831/0.114, allocations: 47.91 kB / 365.6 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.1141, allocations: 7.938 kB / 365.6 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.1142, allocations: 28.02 kB / 365.6 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.1142, allocations: 20 kB / 365.6 MB, free: 6.512 MB / 302.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.0001194/0.1143, allocations: 129.7 kB / 365.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/0.1145, allocations: 85.53 kB / 365.8 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.377e-05/0.1146, allocations: 16.72 kB / 365.9 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.1146, allocations: 7.984 kB / 365.9 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1146, allocations: 0 / 365.9 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1146, allocations: 0 / 365.9 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002903/0.1149, allocations: 205.5 kB / 366.1 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1149, allocations: 7.938 kB / 366.1 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001795/0.1151, allocations: 35.98 kB / 366.1 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.1151, allocations: 0 / 366.1 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.1152, allocations: 15.92 kB / 366.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.1152, allocations: 0 / 366.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1152, allocations: 0 / 366.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005657/0.1158, allocations: 399.3 kB / 366.5 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.814e-05/0.1158, allocations: 92.89 kB / 366.6 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.34e-05/0.1158, allocations: 8.047 kB / 366.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.116, allocations: 12.09 kB / 366.6 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/0.116, allocations: 11.92 kB / 366.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.1161, allocations: 4 kB / 366.6 MB, free: 5.398 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.02e-05/0.1161, allocations: 101.8 kB / 366.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1161, allocations: 0 / 366.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003186/0.1164, allocations: 24 kB / 366.8 MB, free: 5.277 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 (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.0001256/0.1166, allocations: 107.7 kB / 366.9 MB, free: 5.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000341/0.1169, allocations: 124.7 kB / 367 MB, free: 5.039 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1169, allocations: 8.062 kB / 367 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.1171, allocations: 35.92 kB / 367 MB, free: 4.996 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005136/0.1176, allocations: 52.58 kB / 367.1 MB, free: 4.945 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008352/0.1184, allocations: 485.7 kB / 367.6 MB, free: 4.438 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.1188, allocations: 0.7165 MB / 368.3 MB, free: 3.691 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.751e-05/0.1188, allocations: 17.06 kB / 368.3 MB, free: 3.676 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.898e-05/0.1189, allocations: 11.44 kB / 368.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1189, allocations: 4 kB / 368.3 MB, free: 3.66 MB / 302.1 MB Notification: Performance of Templates: time 0.003929/0.1228, allocations: 1.066 MB / 369.4 MB, free: 2.613 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches