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.001138/0.001138, allocations: 106.7 kB / 16.62 MB, free: 6.809 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.001118/0.001118, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.373/1.373, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001082, allocations: 46.08 kB / 300.1 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1123, allocations: 49.44 MB / 349.6 MB, free: 4.777 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003935/0.1162, allocations: 2.104 MB / 351.7 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009401/0.1172, allocations: 0.4987 MB / 352.2 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.1174, allocations: 8 kB / 352.2 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.1176, allocations: 7.875 kB / 352.2 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.626e-05/0.1177, allocations: 19.84 kB / 352.2 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003076/0.118, allocations: 52.39 kB / 352.3 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001875/0.1182, allocations: 123.6 kB / 352.4 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.1183, allocations: 61.64 kB / 352.4 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.88e-05/0.1184, allocations: 55.73 kB / 352.5 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.942e-05/0.1185, allocations: 47.77 kB / 352.5 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.397e-05/0.1186, allocations: 12 kB / 352.5 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.447e-05/0.1186, allocations: 12 kB / 352.6 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.756e-05/0.1186, allocations: 31.84 kB / 352.6 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.421e-05/0.1187, allocations: 59.67 kB / 352.6 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000219/0.1189, allocations: 123.8 kB / 352.8 MB, free: 1.543 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1189, allocations: 4 kB / 352.8 MB, free: 1.539 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1189, allocations: 0 / 352.8 MB, free: 1.539 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.119, allocations: 0 / 352.8 MB, free: 1.539 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.0006661/0.1196, allocations: 443 kB / 353.2 MB, free: 1.059 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.1197, allocations: 8.031 kB / 353.2 MB, free: 1.051 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.202e-05/0.1197, allocations: 20.75 kB / 353.2 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002089/0.12, allocations: 200.1 kB / 353.4 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.12, allocations: 12.38 kB / 353.4 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.628e-05/0.12, allocations: 20.36 kB / 353.5 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004634/0.1205, allocations: 234.8 kB / 353.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.1205, allocations: 0 / 353.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.1205, allocations: 8 kB / 353.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.1206, allocations: 4 kB / 353.7 MB, free: 0.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002411/0.1208, allocations: 83.86 kB / 353.8 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000686/0.1215, allocations: 0.5998 MB / 354.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003399/0.1218, allocations: 143.9 kB / 354.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.122, allocations: 74.58 kB / 354.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.122, allocations: 11.98 kB / 354.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.1221, allocations: 34.55 kB / 354.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.1221, allocations: 4 kB / 354.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004911/0.1226, allocations: 181.3 kB / 354.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.653e-05/0.1227, allocations: 114.7 kB / 354.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.99e-05/0.1228, allocations: 138.1 kB / 355.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.1228, allocations: 29.7 kB / 355.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.391e-05/0.1229, allocations: 108.1 kB / 355.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.596e-05/0.1229, allocations: 27.7 kB / 355.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.338e-05/0.123, allocations: 37.7 kB / 355.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.1231, allocations: 326.8 kB / 355.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.1232, allocations: 35.97 kB / 355.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.1234, allocations: 148.6 kB / 355.8 MB, free: 14.2 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.0004395/0.1238, allocations: 274.7 kB / 356 MB, free: 13.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1238, allocations: 7.938 kB / 356 MB, free: 13.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003691/0.1242, allocations: 197 kB / 356.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.1242, allocations: 8.469 kB / 356.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.1243, allocations: 8 kB / 356.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.1243, allocations: 4.375 kB / 356.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.1244, allocations: 51.91 kB / 356.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.1245, allocations: 4 kB / 356.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.1246, allocations: 15.89 kB / 356.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.421e-05/0.1246, allocations: 15.94 kB / 356.3 MB, free: 13.55 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 system: 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.0001165/0.1247, allocations: 133.9 kB / 356.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.1249, allocations: 93.53 kB / 356.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.504e-05/0.1249, allocations: 24.69 kB / 356.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.1249, allocations: 0 / 356.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.1249, allocations: 4 kB / 356.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.125, allocations: 0 / 356.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002567/0.1252, allocations: 209.5 kB / 356.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.1252, allocations: 0 / 356.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002197/0.1255, allocations: 47.91 kB / 356.8 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.1255, allocations: 0 / 356.8 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.1255, allocations: 11.98 kB / 356.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.1255, allocations: 4 kB / 356.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1255, allocations: 4 kB / 356.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005273/0.126, allocations: 378.6 kB / 357.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.034e-05/0.1261, allocations: 96.88 kB / 357.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.345e-05/0.1261, allocations: 4.062 kB / 357.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.1263, allocations: 12 kB / 357.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.648e-05/0.1263, allocations: 11.86 kB / 357.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.1263, allocations: 4 kB / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.243e-05/0.1264, allocations: 106 kB / 357.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1264, allocations: 0 / 357.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.1268, allocations: 24 kB / 357.5 MB, free: 12.31 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.000107/0.1269, allocations: 115.2 kB / 357.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003677/0.1272, allocations: 119.8 kB / 357.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1273, allocations: 0 / 357.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.1274, allocations: 36.84 kB / 357.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005162/0.1279, allocations: 83.48 kB / 357.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009128/0.1288, allocations: 462.6 kB / 358.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002696/0.1291, allocations: 0.7201 MB / 359 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.696e-05/0.1292, allocations: 13.08 kB / 359 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.899e-05/0.1292, allocations: 15.44 kB / 359 MB, free: 10.7 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1292, allocations: 0 / 359 MB, free: 10.7 MB / 302.1 MB Notification: Performance of Templates: time 0.004034/0.1333, allocations: 1.271 MB / 360.3 MB, free: 9.465 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