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.001178/0.001179, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001233/0.001233, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.383/1.383, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.33 kB / 301.3 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1079, allocations: 49.44 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003963/0.1119, allocations: 1.993 MB / 352.7 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009533/0.1129, allocations: 0.5298 MB / 353.2 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.113, allocations: 4 kB / 353.2 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001052/0.1131, allocations: 15.8 kB / 353.3 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001424/0.1133, allocations: 27.73 kB / 353.3 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002608/0.1136, allocations: 66.81 kB / 353.4 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001648/0.1138, allocations: 119.6 kB / 353.5 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/0.1139, allocations: 61.25 kB / 353.5 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.129e-05/0.114, allocations: 51.8 kB / 353.6 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.631e-05/0.1141, allocations: 51.75 kB / 353.6 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.635e-05/0.1141, allocations: 19.94 kB / 353.6 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.316e-05/0.1142, allocations: 12 kB / 353.7 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.257e-05/0.1142, allocations: 23.92 kB / 353.7 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.737e-05/0.1143, allocations: 59.67 kB / 353.7 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001797/0.1145, allocations: 123.8 kB / 353.9 MB, free: 1.258 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1145, allocations: 0 / 353.9 MB, free: 1.258 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1145, allocations: 0 / 353.9 MB, free: 1.258 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.1145, allocations: 0 / 353.9 MB, free: 1.258 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.0006638/0.1152, allocations: 435 kB / 354.3 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.1152, allocations: 12.03 kB / 354.3 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.726e-05/0.1153, allocations: 12.84 kB / 354.3 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002154/0.1155, allocations: 208 kB / 354.5 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.1155, allocations: 12.36 kB / 354.5 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.436e-05/0.1156, allocations: 12.38 kB / 354.5 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004866/0.116, allocations: 251.4 kB / 354.8 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.1161, allocations: 0 / 354.8 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.1161, allocations: 8 kB / 354.8 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.1161, allocations: 0 / 354.8 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002655/0.1164, allocations: 95.8 kB / 354.9 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006799/0.1171, allocations: 0.5882 MB / 355.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003461/0.1174, allocations: 151.9 kB / 355.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.1176, allocations: 74.64 kB / 355.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.1176, allocations: 3.984 kB / 355.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.1177, allocations: 38.56 kB / 355.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.765e-06/0.1177, allocations: 0 / 355.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005528/0.1182, allocations: 193.4 kB / 355.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.736e-05/0.1183, allocations: 106.8 kB / 356 MB, free: 14.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.1185, allocations: 145.4 kB / 356.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.1185, allocations: 25.7 kB / 356.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.576e-05/0.1186, allocations: 111.8 kB / 356.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.03e-05/0.1186, allocations: 27.7 kB / 356.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.662e-05/0.1187, allocations: 41.7 kB / 356.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1188, allocations: 322.8 kB / 356.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.1189, allocations: 35.97 kB / 356.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.1191, allocations: 129.7 kB / 356.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.1194, allocations: 193.4 kB / 357 MB, free: 13.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1194, allocations: 4 kB / 357 MB, free: 13.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003883/0.1198, allocations: 197.5 kB / 357.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.1198, allocations: 8 kB / 357.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.1199, allocations: 8 kB / 357.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.1199, allocations: 4 kB / 357.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.12, allocations: 51.91 kB / 357.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.053e-05/0.1201, allocations: 11.98 kB / 357.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.1202, allocations: 19.84 kB / 357.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.1202, allocations: 11.98 kB / 357.4 MB, free: 13.37 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.0001044/0.1203, allocations: 137.6 kB / 357.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.1205, allocations: 93.84 kB / 357.6 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001365/0.1206, allocations: 16.72 kB / 357.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.1206, allocations: 4 kB / 357.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1206, allocations: 0 / 357.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1207, allocations: 3.984 kB / 357.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002796/0.1209, allocations: 205.5 kB / 357.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.121, allocations: 4 kB / 357.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001805/0.1211, allocations: 35.92 kB / 357.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.1212, allocations: 4 kB / 357.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.1212, allocations: 0 / 357.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.1212, allocations: 8 kB / 357.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1212, allocations: 3.984 kB / 357.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005568/0.1218, allocations: 379.4 kB / 358.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.236e-05/0.1218, allocations: 89.02 kB / 358.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.561e-05/0.1219, allocations: 8 kB / 358.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.122, allocations: 11.92 kB / 358.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.259e-05/0.122, allocations: 7.984 kB / 358.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.1221, allocations: 8 kB / 358.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.191e-05/0.1221, allocations: 98.08 kB / 358.4 MB, free: 12.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1222, allocations: 0 / 358.4 MB, free: 12.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003333/0.1225, allocations: 27.91 kB / 358.5 MB, free: 12.14 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.0001104/0.1226, allocations: 107.2 kB / 358.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003438/0.123, allocations: 123.7 kB / 358.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.123, allocations: 0 / 358.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.998e-05/0.1231, allocations: 28.92 kB / 358.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004838/0.1236, allocations: 63.95 kB / 358.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007864/0.1244, allocations: 427.7 kB / 359.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003061/0.1247, allocations: 0.7123 MB / 359.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.646e-05/0.1247, allocations: 15.44 kB / 359.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.1248, allocations: 4.375 kB / 359.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of Templates: time 0.00363/0.1284, allocations: 1.523 MB / 361.5 MB, free: 9.086 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/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