Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006502/0.006502, allocations: 89.23 kB / 15.91 MB, free: 6.309 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.00132/0.00132, allocations: 199.4 kB / 16.83 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.516/1.516, allocations: 205.1 MB / 222.7 MB, free: 4.969 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07526/0.07526, allocations: 12.59 MB / 282.6 MB, free: 9.098 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 92.77 kB / 342.8 MB, free: 21.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1209, allocations: 49.4 MB / 392.2 MB, free: 3.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003413/0.1244, allocations: 2.105 MB / 394.3 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008295/0.1252, allocations: 0.5307 MB / 394.8 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.1254, allocations: 4 kB / 394.8 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.1255, allocations: 11.86 kB / 394.8 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.156e-05/0.1256, allocations: 15.86 kB / 394.8 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002708/0.1258, allocations: 51.89 kB / 394.9 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001513/0.126, allocations: 127.6 kB / 395 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.1262, allocations: 57.67 kB / 395.1 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.741e-05/0.1262, allocations: 51.73 kB / 395.1 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.428e-05/0.1263, allocations: 55.69 kB / 395.2 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.323e-05/0.1263, allocations: 8 kB / 395.2 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.982e-05/0.1264, allocations: 8 kB / 395.2 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.68e-05/0.1264, allocations: 19.92 kB / 395.2 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.81e-05/0.1265, allocations: 55.67 kB / 395.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001379/0.1266, allocations: 123.5 kB / 395.4 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1266, allocations: 0 / 395.4 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1266, allocations: 0 / 395.4 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.107e-06/0.1266, allocations: 0 / 395.4 MB, free: 0.5117 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.0005393/0.1272, allocations: 439 kB / 395.8 MB, free: 36 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.1272, allocations: 8.031 kB / 395.8 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.301e-05/0.1273, allocations: 20.73 kB / 395.9 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001862/0.1275, allocations: 204.1 kB / 396.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.1275, allocations: 16.38 kB / 396.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.87e-05/0.1275, allocations: 12.38 kB / 396.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004468/0.128, allocations: 222.8 kB / 396.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.128, allocations: 8 kB / 396.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.128, allocations: 4 kB / 396.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.128, allocations: 4 kB / 396.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002371/0.1283, allocations: 83.88 kB / 396.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006031/0.1289, allocations: 0.6037 MB / 397 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003051/0.1292, allocations: 147.9 kB / 397.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001399/0.1293, allocations: 74.58 kB / 397.2 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.1294, allocations: 4 kB / 397.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.1294, allocations: 42.5 kB / 397.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.1294, allocations: 0 / 397.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004834/0.1299, allocations: 185.5 kB / 397.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.098e-05/0.13, allocations: 110.9 kB / 397.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.919e-05/0.1301, allocations: 142 kB / 397.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.1301, allocations: 29.7 kB / 397.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.105e-05/0.1302, allocations: 112.1 kB / 397.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.202e-05/0.1302, allocations: 27.64 kB / 397.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.35e-05/0.1303, allocations: 37.7 kB / 397.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.1304, allocations: 322.8 kB / 398.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.1305, allocations: 35.97 kB / 398.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/0.1307, allocations: 149.6 kB / 398.4 MB, free: 13.17 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.0004356/0.1311, allocations: 278.9 kB / 398.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.1311, allocations: 4 kB / 398.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003566/0.1315, allocations: 201.4 kB / 398.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.1315, allocations: 12.06 kB / 398.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.1315, allocations: 8 kB / 398.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.1316, allocations: 4 kB / 398.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001637/0.1317, allocations: 47.92 kB / 398.9 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.1317, allocations: 11.97 kB / 398.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.848e-05/0.1319, allocations: 15.84 kB / 399 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.1319, allocations: 12 kB / 399 MB, free: 12.52 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.0001043/0.132, allocations: 137.7 kB / 399.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.1321, allocations: 89.53 kB / 399.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.119e-05/0.1322, allocations: 16.72 kB / 399.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1322, allocations: 0 / 399.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1322, allocations: 4 kB / 399.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1322, allocations: 3.984 kB / 399.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002509/0.1325, allocations: 213.4 kB / 399.4 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.1325, allocations: 0 / 399.4 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002033/0.1327, allocations: 43.97 kB / 399.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1327, allocations: 0 / 399.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.1327, allocations: 0 / 399.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.1327, allocations: 8 kB / 399.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.1327, allocations: 7.875 kB / 399.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004827/0.1332, allocations: 378.6 kB / 399.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.363e-05/0.1333, allocations: 96.95 kB / 399.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.41e-05/0.1333, allocations: 8.078 kB / 400 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.1334, allocations: 7.938 kB / 400 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.1335, allocations: 11.98 kB / 400 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-06/0.1335, allocations: 4 kB / 400 MB, free: 11.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.534e-05/0.1336, allocations: 103.3 kB / 400.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1336, allocations: 0 / 400.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003003/0.1339, allocations: 24 kB / 400.1 MB, free: 11.28 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 9.445e-05/0.134, allocations: 103.2 kB / 400.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000317/0.1343, allocations: 127.7 kB / 400.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.1343, allocations: 0.9375 kB / 400.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.46e-05/0.1344, allocations: 31.97 kB / 400.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000475/0.1349, allocations: 64.61 kB / 400.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008295/0.1357, allocations: 468.4 kB / 400.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002488/0.136, allocations: 0.7165 MB / 401.6 MB, free: 9.715 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.568e-05/0.1361, allocations: 9.078 kB / 401.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.66e-05/0.1361, allocations: 15.44 kB / 401.6 MB, free: 9.691 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1361, allocations: 3.938 kB / 401.6 MB, free: 9.688 MB / 302.1 MB Notification: Performance of Templates: time 0.003542/0.1396, allocations: 1.208 MB / 402.8 MB, free: 8.48 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches