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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009018/0.0009018, allocations: 91.25 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009786/0.0009787, allocations: 184.5 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002865/0.0002865, allocations: 8.562 kB / 301.4 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1079, allocations: 50.41 MB / 351.8 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002393/0.1103, allocations: 1.71 MB / 353.5 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007942/0.1112, allocations: 0.5065 MB / 354 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.1113, allocations: 4 kB / 354 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.69e-05/0.1114, allocations: 11.86 kB / 354.1 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001348/0.1115, allocations: 27.84 kB / 354.1 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000239/0.1118, allocations: 55.27 kB / 354.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001583/0.1119, allocations: 111.6 kB / 354.2 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.1121, allocations: 45.09 kB / 354.3 MB, free: 1 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.172e-05/0.1122, allocations: 39.86 kB / 354.3 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.812e-05/0.1123, allocations: 43.72 kB / 354.4 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.594e-05/0.1123, allocations: 7.984 kB / 354.4 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.349e-05/0.1123, allocations: 4 kB / 354.4 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.594e-05/0.1123, allocations: 19.86 kB / 354.4 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.032e-05/0.1124, allocations: 77.38 kB / 354.5 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.1126, allocations: 123.8 kB / 354.6 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1126, allocations: 0 / 354.6 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.1126, allocations: 0 / 354.6 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.1126, allocations: 4 kB / 354.6 MB, free: 0.6797 MB / 286.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.0005623/0.1132, allocations: 407.2 kB / 355 MB, free: 240 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.1132, allocations: 8.031 kB / 355 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.112e-05/0.1133, allocations: 20.73 kB / 355 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.1135, allocations: 208.1 kB / 355.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.1135, allocations: 12.36 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.144e-05/0.1136, allocations: 16.38 kB / 355.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005287/0.1141, allocations: 258.8 kB / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.1141, allocations: 3.906 kB / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.332e-05/0.1142, allocations: 4 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.1142, allocations: 4 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002659/0.1145, allocations: 95.88 kB / 355.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000723/0.1152, allocations: 0.5882 MB / 356.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004767/0.1157, allocations: 155.8 kB / 356.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002469/0.1159, allocations: 82.62 kB / 356.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.827e-05/0.116, allocations: 7.984 kB / 356.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.876e-05/0.116, allocations: 34.56 kB / 356.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.215e-06/0.1161, allocations: 0 / 356.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008002/0.1169, allocations: 205.3 kB / 356.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.117, allocations: 114.8 kB / 356.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.1171, allocations: 122.3 kB / 356.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.1172, allocations: 37.58 kB / 356.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.344e-05/0.1173, allocations: 123.8 kB / 357.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.72e-05/0.1173, allocations: 23.7 kB / 357.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.572e-05/0.1174, allocations: 21.7 kB / 357.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.1175, allocations: 326.8 kB / 357.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.1177, allocations: 39.97 kB / 357.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002531/0.118, allocations: 136.9 kB / 357.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005331/0.1185, allocations: 209.4 kB / 357.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.1185, allocations: 4 kB / 357.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005566/0.1191, allocations: 201.2 kB / 358 MB, free: 12.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.1191, allocations: 6.344 kB / 358 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.1192, allocations: 4 kB / 358 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.1192, allocations: 8 kB / 358 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002428/0.1194, allocations: 56.38 kB / 358.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.1195, allocations: 4 kB / 358.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001738/0.1196, allocations: 23.83 kB / 358.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.1197, allocations: 12 kB / 358.1 MB, free: 12.76 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.0001339/0.1198, allocations: 134.2 kB / 358.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000226/0.1201, allocations: 89.7 kB / 358.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.1202, allocations: 28.69 kB / 358.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.1202, allocations: 8 kB / 358.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.1202, allocations: 0 / 358.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.1202, allocations: 0 / 358.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004079/0.1207, allocations: 205.5 kB / 358.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1207, allocations: 4 kB / 358.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002641/0.1209, allocations: 40.39 kB / 358.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.121, allocations: 0 / 358.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.121, allocations: 7.984 kB / 358.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.121, allocations: 0 / 358.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.121, allocations: 4 kB / 358.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007875/0.1218, allocations: 403.3 kB / 359 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.422e-05/0.1219, allocations: 92.89 kB / 359.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.614e-05/0.1219, allocations: 7.984 kB / 359.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002357/0.1222, allocations: 8 kB / 359.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.04e-05/0.1222, allocations: 7.984 kB / 359.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.1223, allocations: 4 kB / 359.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.947e-05/0.1224, allocations: 110.4 kB / 359.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1224, allocations: 0 / 359.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005749/0.123, allocations: 24 kB / 359.3 MB, free: 11.5 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.0001271/0.1231, allocations: 99.25 kB / 359.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004721/0.1236, allocations: 136.1 kB / 359.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1236, allocations: 0 / 359.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001541/0.1238, allocations: 35.92 kB / 359.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007651/0.1245, allocations: 60.56 kB / 359.6 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009708/0.1255, allocations: 489.5 kB / 360.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003495/0.1259, allocations: 0.7126 MB / 360.8 MB, free: 9.922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.54e-05/0.126, allocations: 13.08 kB / 360.8 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.371e-05/0.126, allocations: 15.44 kB / 360.8 MB, free: 9.895 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.126, allocations: 0 / 360.8 MB, free: 9.895 MB / 302.1 MB Notification: Performance of Templates: time 0.005207/0.1313, allocations: 1.066 MB / 361.9 MB, free: 8.844 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (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) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches