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.001346/0.001346, allocations: 106.2 kB / 16.45 MB, free: 6.434 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.001138/0.001138, allocations: 196.4 kB / 17.39 MB, free: 5.691 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.667/1.667, allocations: 205.1 MB / 223.3 MB, free: 12.23 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.08331/0.08331, allocations: 12.58 MB / 283.2 MB, free: 15.41 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.001997/0.001997, allocations: 89.83 kB / 394.2 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09523/0.09724, allocations: 49.4 MB / 443.6 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003341/0.1006, allocations: 2.02 MB / 445.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.1018, allocations: 0.6086 MB / 446.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001779/0.1021, allocations: 4 kB / 446.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.1022, allocations: 19.8 kB / 446.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002031/0.1024, allocations: 31.72 kB / 446.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003214/0.1028, allocations: 75.78 kB / 446.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001972/0.103, allocations: 123.6 kB / 446.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.1031, allocations: 69.77 kB / 446.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.1032, allocations: 63.7 kB / 446.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.369e-05/0.1033, allocations: 55.72 kB / 446.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.571e-05/0.1034, allocations: 8 kB / 446.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.158e-05/0.1034, allocations: 12 kB / 446.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.94e-05/0.1035, allocations: 35.84 kB / 446.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.171e-05/0.1036, allocations: 67.59 kB / 446.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.1038, allocations: 131.5 kB / 446.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.1038, allocations: 3.984 kB / 446.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1038, allocations: 3.938 kB / 446.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.1038, allocations: 4 kB / 446.9 MB, free: 13.16 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.0006971/0.1045, allocations: 450.9 kB / 447.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1046, allocations: 8.031 kB / 447.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.288e-05/0.1046, allocations: 16.75 kB / 447.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003152/0.105, allocations: 222 kB / 447.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.105, allocations: 8.375 kB / 447.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.756e-05/0.105, allocations: 24.38 kB / 447.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005204/0.1056, allocations: 250.8 kB / 447.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.1056, allocations: 0 / 447.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.1056, allocations: 8 kB / 447.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.1056, allocations: 7.938 kB / 447.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002464/0.1059, allocations: 79.88 kB / 447.9 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007751/0.1067, allocations: 0.6037 MB / 448.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003578/0.107, allocations: 147.9 kB / 448.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.1072, allocations: 78.62 kB / 448.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.318e-05/0.1072, allocations: 11.97 kB / 448.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.1073, allocations: 38.56 kB / 448.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.1073, allocations: 3.938 kB / 448.8 MB, free: 11 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005167/0.1078, allocations: 189.3 kB / 449 MB, free: 10.81 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.92e-05/0.1079, allocations: 110.8 kB / 449.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/0.1081, allocations: 163 kB / 449.3 MB, free: 10.51 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.1081, allocations: 25.7 kB / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.808e-05/0.1082, allocations: 116.4 kB / 449.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.029e-05/0.1082, allocations: 23.73 kB / 449.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.848e-05/0.1083, allocations: 37.62 kB / 449.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1085, allocations: 330.9 kB / 449.8 MB, free: 9.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.1086, allocations: 35.97 kB / 449.8 MB, free: 9.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.1088, allocations: 133.7 kB / 449.9 MB, free: 9.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.1091, allocations: 193.5 kB / 450.1 MB, free: 9.512 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.1091, allocations: 0 / 450.1 MB, free: 9.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003974/0.1095, allocations: 193.3 kB / 450.3 MB, free: 9.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.1096, allocations: 11.98 kB / 450.3 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.1096, allocations: 4 kB / 450.3 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.321e-05/0.1096, allocations: 4 kB / 450.3 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001477/0.1098, allocations: 47.92 kB / 450.4 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/0.1098, allocations: 7.984 kB / 450.4 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.1099, allocations: 15.91 kB / 450.4 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.1099, allocations: 12.31 kB / 450.4 MB, free: 9.215 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.0001173/0.1101, allocations: 145.6 kB / 450.6 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001512/0.1102, allocations: 89.44 kB / 450.7 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.041e-05/0.1103, allocations: 16.72 kB / 450.7 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.1103, allocations: 4 kB / 450.7 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.1103, allocations: 480 / 450.7 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.1103, allocations: 7.984 kB / 450.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.1106, allocations: 213.5 kB / 450.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.1106, allocations: 0 / 450.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000169/0.1108, allocations: 47.84 kB / 450.9 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.1108, allocations: 3.938 kB / 450.9 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.1108, allocations: 8 kB / 450.9 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1108, allocations: 0 / 450.9 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1108, allocations: 0 / 450.9 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005445/0.1114, allocations: 387.3 kB / 451.3 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.671e-05/0.1115, allocations: 104.9 kB / 451.4 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.158e-05/0.1115, allocations: 4 kB / 451.4 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.1116, allocations: 11.98 kB / 451.4 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/0.1117, allocations: 0 / 451.4 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.1117, allocations: 7.984 kB / 451.5 MB, free: 8.078 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.198e-05/0.1118, allocations: 128.7 kB / 451.6 MB, free: 7.953 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1118, allocations: 4.062 kB / 451.6 MB, free: 7.949 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003143/0.1121, allocations: 24 kB / 451.6 MB, free: 7.926 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 8.944e-05/0.1122, allocations: 99.25 kB / 451.7 MB, free: 7.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003109/0.1125, allocations: 124.4 kB / 451.8 MB, free: 7.699 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.696e-06/0.1125, allocations: 4.188 kB / 451.8 MB, free: 7.695 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.812e-05/0.1126, allocations: 31.91 kB / 451.9 MB, free: 7.664 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005095/0.1131, allocations: 72.23 kB / 451.9 MB, free: 7.594 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007964/0.114, allocations: 413.9 kB / 452.3 MB, free: 7.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.1143, allocations: 0.7162 MB / 453 MB, free: 6.418 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.932e-05/0.1144, allocations: 13.42 kB / 453.1 MB, free: 6.402 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.248e-05/0.1144, allocations: 19.44 kB / 453.1 MB, free: 6.383 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1144, allocations: 0 / 453.1 MB, free: 6.383 MB / 334.1 MB Notification: Performance of Templates: time 0.004414/0.1189, allocations: 1.347 MB / 454.4 MB, free: 5.035 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