Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001853/0.001853, allocations: 108.4 kB / 16.45 MB, free: 6.449 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.001889/0.001889, allocations: 189.5 kB / 17.39 MB, free: 5.668 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.546/1.546, allocations: 205.1 MB / 223.3 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07622/0.07622, allocations: 12.6 MB / 283.2 MB, free: 15.39 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.001818/0.001818, allocations: 85.2 kB / 394.1 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1085, allocations: 49.4 MB / 443.6 MB, free: 500 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003652/0.1122, allocations: 2.012 MB / 445.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.1135, allocations: 0.6125 MB / 446.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.1137, allocations: 7.938 kB / 446.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.1138, allocations: 15.8 kB / 446.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001976/0.114, allocations: 31.7 kB / 446.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003335/0.1144, allocations: 75.8 kB / 446.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001853/0.1146, allocations: 131.6 kB / 446.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001998/0.1148, allocations: 69.75 kB / 446.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.535e-05/0.1149, allocations: 47.8 kB / 446.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.576e-05/0.115, allocations: 55.7 kB / 446.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.057e-05/0.115, allocations: 16 kB / 446.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.512e-05/0.115, allocations: 12 kB / 446.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.065e-05/0.1151, allocations: 43.78 kB / 446.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.808e-05/0.1152, allocations: 67.59 kB / 446.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000184/0.1154, allocations: 131.5 kB / 446.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1154, allocations: 0 / 446.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1154, allocations: 0 / 446.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.1154, allocations: 0 / 446.9 MB, free: 13.14 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007393/0.1162, allocations: 450.9 kB / 447.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.1162, allocations: 8.031 kB / 447.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.502e-05/0.1163, allocations: 16.75 kB / 447.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002955/0.1166, allocations: 226 kB / 447.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.1166, allocations: 12.36 kB / 447.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.463e-05/0.1166, allocations: 12.38 kB / 447.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004817/0.1171, allocations: 254.8 kB / 447.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.1171, allocations: 3.984 kB / 447.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.1172, allocations: 11.94 kB / 447.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.1172, allocations: 4 kB / 447.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000248/0.1174, allocations: 91.88 kB / 447.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007134/0.1181, allocations: 0.5959 MB / 448.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003702/0.1185, allocations: 159.6 kB / 448.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.1187, allocations: 70.64 kB / 448.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.1187, allocations: 12.11 kB / 448.8 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.1188, allocations: 34.56 kB / 448.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/0.1188, allocations: 0 / 448.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005262/0.1193, allocations: 193.2 kB / 449 MB, free: 10.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.865e-05/0.1194, allocations: 110.8 kB / 449.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.1195, allocations: 159 kB / 449.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.1196, allocations: 29.7 kB / 449.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.522e-05/0.1196, allocations: 112.4 kB / 449.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.695e-05/0.1197, allocations: 27.73 kB / 449.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.36e-05/0.1197, allocations: 41.61 kB / 449.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.1198, allocations: 326.8 kB / 449.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.12, allocations: 35.97 kB / 449.8 MB, free: 9.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.1201, allocations: 133.7 kB / 449.9 MB, free: 9.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.1204, allocations: 185.5 kB / 450.1 MB, free: 9.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.1204, allocations: 7.984 kB / 450.1 MB, free: 9.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003601/0.1208, allocations: 197.1 kB / 450.3 MB, free: 9.289 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.1208, allocations: 8.469 kB / 450.3 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.1209, allocations: 4 kB / 450.3 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.1209, allocations: 8 kB / 450.3 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.121, allocations: 43.91 kB / 450.4 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.1211, allocations: 8 kB / 450.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.1212, allocations: 19.89 kB / 450.4 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.1212, allocations: 8 kB / 450.4 MB, free: 9.191 MB / 334.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.0001116/0.1213, allocations: 137.7 kB / 450.6 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.1215, allocations: 97.81 kB / 450.7 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.223e-05/0.1215, allocations: 20.7 kB / 450.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1215, allocations: 4.094 kB / 450.7 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.1216, allocations: 3.938 kB / 450.7 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1216, allocations: 0 / 450.7 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002882/0.1219, allocations: 217.5 kB / 450.9 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1219, allocations: 7.938 kB / 450.9 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001721/0.122, allocations: 31.98 kB / 450.9 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1221, allocations: 0 / 450.9 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.1221, allocations: 0 / 450.9 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.005e-06/0.1221, allocations: 11.94 kB / 450.9 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1221, allocations: 3.984 kB / 450.9 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005274/0.1226, allocations: 375.4 kB / 451.3 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.883e-05/0.1227, allocations: 108.9 kB / 451.4 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/0.1228, allocations: 8.062 kB / 451.4 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.1229, allocations: 12 kB / 451.4 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.461e-05/0.1229, allocations: 7.984 kB / 451.4 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.123, allocations: 4 kB / 451.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.777e-05/0.1231, allocations: 128.9 kB / 451.6 MB, free: 7.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1231, allocations: 3.938 kB / 451.6 MB, free: 7.926 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000315/0.1234, allocations: 24 kB / 451.6 MB, free: 7.902 MB / 334.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.632e-05/0.1235, allocations: 95.25 kB / 451.7 MB, free: 7.801 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003539/0.1239, allocations: 131.7 kB / 451.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1239, allocations: 0 / 451.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.633e-05/0.124, allocations: 24.92 kB / 451.8 MB, free: 7.648 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000503/0.1245, allocations: 72.36 kB / 451.9 MB, free: 7.578 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008115/0.1253, allocations: 413.9 kB / 452.3 MB, free: 7.145 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003907/0.1257, allocations: 0.724 MB / 453 MB, free: 6.395 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.28e-05/0.1258, allocations: 9.422 kB / 453.1 MB, free: 6.383 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.355e-05/0.1258, allocations: 15.44 kB / 453.1 MB, free: 6.367 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1258, allocations: 0 / 453.1 MB, free: 6.367 MB / 334.1 MB Notification: Performance of Templates: time 0.00432/0.1301, allocations: 1.359 MB / 454.4 MB, free: 5.008 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches