Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,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.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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008947/0.0008947, allocations: 90.83 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.0009527/0.0009528, allocations: 180.2 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.491/1.491, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004951/0.0004952, allocations: 7.938 kB / 301.4 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1148, allocations: 50.41 MB / 351.8 MB, free: 3.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002198/0.1171, allocations: 1.695 MB / 353.5 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007503/0.1178, allocations: 0.4909 MB / 354 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.633e-05/0.1179, allocations: 4 kB / 354 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.978e-05/0.118, allocations: 7.922 kB / 354 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.46e-05/0.1181, allocations: 23.78 kB / 354 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002785/0.1184, allocations: 47.95 kB / 354.1 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.1185, allocations: 115.6 kB / 354.2 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.1187, allocations: 49.09 kB / 354.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.063e-05/0.1188, allocations: 35.8 kB / 354.3 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.68e-05/0.1189, allocations: 51.7 kB / 354.3 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.223e-05/0.1189, allocations: 4 kB / 354.3 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.772e-05/0.1189, allocations: 8 kB / 354.4 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.519e-05/0.1189, allocations: 19.92 kB / 354.4 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.049e-05/0.119, allocations: 77.38 kB / 354.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.1192, allocations: 103.8 kB / 354.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1192, allocations: 4 kB / 354.6 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1192, allocations: 0 / 354.6 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.1192, allocations: 0 / 354.6 MB, free: 0.7188 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005079/0.1197, allocations: 419.1 kB / 355 MB, free: 268 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.1197, allocations: 8.031 kB / 355 MB, free: 260 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.171e-05/0.1198, allocations: 16.75 kB / 355 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001977/0.12, allocations: 204.1 kB / 355.2 MB, free: 0 / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.12, allocations: 8.5 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.999e-05/0.12, allocations: 16.31 kB / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004637/0.1205, allocations: 250 kB / 355.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.1205, allocations: 7.984 kB / 355.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.1206, allocations: 4 kB / 355.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.1206, allocations: 4 kB / 355.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002569/0.1208, allocations: 95.88 kB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005903/0.1214, allocations: 0.592 MB / 356.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002684/0.1217, allocations: 155.9 kB / 356.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.1219, allocations: 78.62 kB / 356.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.1219, allocations: 4 kB / 356.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.122, allocations: 46.44 kB / 356.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.122, allocations: 0 / 356.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005147/0.1225, allocations: 193.5 kB / 356.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.396e-05/0.1226, allocations: 114.7 kB / 356.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.89e-05/0.1227, allocations: 126.1 kB / 356.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.1227, allocations: 25.7 kB / 356.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.735e-05/0.1228, allocations: 115.9 kB / 357 MB, free: 14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.22e-05/0.1228, allocations: 27.64 kB / 357 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.224e-05/0.1228, allocations: 29.73 kB / 357.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.496e-05/0.1229, allocations: 322.8 kB / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.1231, allocations: 39.97 kB / 357.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.1232, allocations: 131.6 kB / 357.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002856/0.1235, allocations: 196.6 kB / 357.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1235, allocations: 4 kB / 357.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003606/0.1239, allocations: 197.5 kB / 357.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.1239, allocations: 8 kB / 357.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1239, allocations: 4 kB / 357.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.124, allocations: 7.938 kB / 357.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.1241, allocations: 43.92 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.1241, allocations: 11.98 kB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.1243, allocations: 24.03 kB / 358 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.1243, allocations: 12 kB / 358 MB, free: 12.85 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.348e-05/0.1244, allocations: 137.6 kB / 358.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/0.1245, allocations: 81.53 kB / 358.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.556e-05/0.1246, allocations: 24.64 kB / 358.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.1246, allocations: 480 / 358.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1246, allocations: 4 kB / 358.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1246, allocations: 0 / 358.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002452/0.1248, allocations: 201.5 kB / 358.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1249, allocations: 0 / 358.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001652/0.125, allocations: 43.92 kB / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.125, allocations: 7.984 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.1251, allocations: 3.938 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.1251, allocations: 4 kB / 358.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1251, allocations: 3.938 kB / 358.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004992/0.1256, allocations: 375.5 kB / 358.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.434e-05/0.1256, allocations: 88.98 kB / 359 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.269e-05/0.1257, allocations: 16 kB / 359 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.1258, allocations: 7.984 kB / 359 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.738e-05/0.1259, allocations: 11.98 kB / 359 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.1259, allocations: 4 kB / 359 MB, free: 11.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.213e-05/0.1259, allocations: 98.36 kB / 359.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1259, allocations: 0 / 359.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003097/0.1262, allocations: 27.91 kB / 359.1 MB, free: 11.62 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 8.969e-05/0.1263, allocations: 111.2 kB / 359.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003219/0.1267, allocations: 128.6 kB / 359.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.1267, allocations: 4.062 kB / 359.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.1268, allocations: 32.3 kB / 359.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004843/0.1273, allocations: 55.89 kB / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000659/0.128, allocations: 481.6 kB / 359.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.1282, allocations: 0.7204 MB / 360.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.16e-05/0.1283, allocations: 4.656 kB / 360.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.721e-05/0.1283, allocations: 19.42 kB / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1283, allocations: 4 kB / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Templates: time 0.003369/0.1317, allocations: 1.045 MB / 361.7 MB, free: 9.012 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches