Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007674/0.0007675, allocations: 95.55 kB / 16.65 MB, free: 6.586 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.0008425/0.0008425, allocations: 184.4 kB / 17.57 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.466/1.466, allocations: 223.3 MB / 241.6 MB, free: 104 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002784/0.0002784, allocations: 11 kB / 301.4 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1125, allocations: 50.42 MB / 351.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002688/0.1152, allocations: 1.753 MB / 353.6 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009158/0.1161, allocations: 490.7 kB / 354.1 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.1163, allocations: 4 kB / 354.1 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.1164, allocations: 15.86 kB / 354.1 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.344e-05/0.1165, allocations: 27.83 kB / 354.1 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.1168, allocations: 47.89 kB / 354.2 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001992/0.117, allocations: 119.6 kB / 354.3 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.1172, allocations: 53.31 kB / 354.3 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.531e-05/0.1173, allocations: 51.72 kB / 354.4 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.689e-05/0.1174, allocations: 39.78 kB / 354.4 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.209e-05/0.1174, allocations: 4 kB / 354.4 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.936e-05/0.1174, allocations: 4 kB / 354.4 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.952e-05/0.1175, allocations: 19.86 kB / 354.4 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001521/0.1176, allocations: 73.39 kB / 354.5 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001724/0.1178, allocations: 119.8 kB / 354.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1178, allocations: 4 kB / 354.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1178, allocations: 8 kB / 354.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.1178, allocations: 0 / 354.6 MB, free: 0.8555 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.000607/0.1184, allocations: 419.1 kB / 355 MB, free: 408 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.1185, allocations: 8.031 kB / 355.1 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.878e-05/0.1185, allocations: 16.75 kB / 355.1 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.1188, allocations: 208 kB / 355.3 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.1188, allocations: 12.38 kB / 355.3 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.326e-05/0.1189, allocations: 16.38 kB / 355.3 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005237/0.1194, allocations: 234.9 kB / 355.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.1194, allocations: 0 / 355.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.1194, allocations: 8 kB / 355.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.1194, allocations: 0 / 355.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002682/0.1197, allocations: 94.83 kB / 355.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007457/0.1205, allocations: 0.6114 MB / 356.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003761/0.1209, allocations: 155.9 kB / 356.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001647/0.121, allocations: 78.64 kB / 356.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.1211, allocations: 0 / 356.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.1211, allocations: 42.48 kB / 356.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.1211, allocations: 0 / 356.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005864/0.1217, allocations: 201.3 kB / 356.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.833e-05/0.1218, allocations: 110.9 kB / 356.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.122, allocations: 144.9 kB / 357 MB, free: 14.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/0.122, allocations: 25.7 kB / 357 MB, free: 14.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.398e-05/0.1221, allocations: 115.9 kB / 357.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.242e-05/0.1221, allocations: 23.8 kB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.56e-05/0.1222, allocations: 25.7 kB / 357.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.1224, allocations: 318.8 kB / 357.5 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.1225, allocations: 47.97 kB / 357.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002032/0.1227, allocations: 152.8 kB / 357.7 MB, free: 13.5 MB / 302.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.000572/0.1233, allocations: 286.7 kB / 357.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.1233, allocations: 4 kB / 357.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004334/0.1237, allocations: 217.5 kB / 358.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.1238, allocations: 8 kB / 358.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.1238, allocations: 7.984 kB / 358.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.1238, allocations: 4 kB / 358.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.124, allocations: 47.91 kB / 358.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.124, allocations: 4 kB / 358.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001206/0.1241, allocations: 19.91 kB / 358.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.1242, allocations: 12.16 kB / 358.3 MB, free: 12.83 MB / 302.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = PI.y_start. 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.0001441/0.1243, allocations: 137.7 kB / 358.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.1245, allocations: 93.47 kB / 358.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.448e-05/0.1245, allocations: 16.72 kB / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1246, allocations: 0 / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.1246, allocations: 0 / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.1246, allocations: 7.984 kB / 358.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003308/0.1249, allocations: 213.9 kB / 358.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1249, allocations: 0 / 358.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002184/0.1252, allocations: 47.97 kB / 358.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.1252, allocations: 0 / 358.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.1252, allocations: 4 kB / 358.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-06/0.1252, allocations: 3.938 kB / 358.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.1252, allocations: 7.938 kB / 358.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000604/0.1258, allocations: 395.4 kB / 359.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.226e-05/0.1259, allocations: 92.89 kB / 359.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.975e-05/0.1259, allocations: 12.05 kB / 359.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.1261, allocations: 12 kB / 359.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.732e-05/0.1261, allocations: 11.98 kB / 359.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.1262, allocations: 4 kB / 359.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.109e-05/0.1263, allocations: 103.3 kB / 359.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1263, allocations: 3.938 kB / 359.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000333/0.1266, allocations: 24 kB / 359.4 MB, free: 11.55 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.0001373/0.1267, allocations: 111.1 kB / 359.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003662/0.1271, allocations: 132.6 kB / 359.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1271, allocations: 4.062 kB / 359.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.1272, allocations: 35.97 kB / 359.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005256/0.1278, allocations: 63.89 kB / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009499/0.1287, allocations: 0.5114 MB / 360.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.129, allocations: 0.7126 MB / 361 MB, free: 9.918 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.825e-05/0.1291, allocations: 13.08 kB / 361 MB, free: 9.906 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.157e-05/0.1291, allocations: 19.44 kB / 361 MB, free: 9.887 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1292, allocations: 0 / 361 MB, free: 9.887 MB / 302.1 MB Notification: Performance of Templates: time 0.004121/0.1333, allocations: 1.19 MB / 362.2 MB, free: 8.738 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches