Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.00122, allocations: 106.7 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.001268/0.001268, allocations: 186.4 kB / 17.38 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.604/1.604, allocations: 205.1 MB / 223.3 MB, free: 12.21 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.07395/0.07395, 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.001847/0.001847, allocations: 88.47 kB / 394.1 MB, free: 45.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09419/0.09605, allocations: 49.4 MB / 443.6 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003181/0.09927, allocations: 1.989 MB / 445.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009363/0.1002, allocations: 0.5697 MB / 446.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.1003, allocations: 7.938 kB / 446.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.1005, allocations: 15.8 kB / 446.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001601/0.1006, allocations: 27.78 kB / 446.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.1009, allocations: 63.81 kB / 446.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001778/0.1011, allocations: 127.5 kB / 446.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001724/0.1013, allocations: 65.3 kB / 446.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.84e-05/0.1014, allocations: 51.78 kB / 446.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.1015, allocations: 59.7 kB / 446.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.07e-05/0.1015, allocations: 8 kB / 446.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.154e-05/0.1015, allocations: 12 kB / 446.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.879e-05/0.1016, allocations: 27.92 kB / 446.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.426e-05/0.1017, allocations: 59.66 kB / 446.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002241/0.1019, allocations: 127.5 kB / 446.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1019, allocations: 0 / 446.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1019, allocations: 0 / 446.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.1019, allocations: 0 / 446.7 MB, free: 13.28 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008049/0.1027, allocations: 427 kB / 447.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.1028, allocations: 8.031 kB / 447.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.798e-05/0.1029, allocations: 20.75 kB / 447.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003637/0.1032, allocations: 208.1 kB / 447.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.1033, allocations: 12.31 kB / 447.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.426e-05/0.1033, allocations: 12.38 kB / 447.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005705/0.1039, allocations: 246.8 kB / 447.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.1039, allocations: 0 / 447.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.58e-05/0.1039, allocations: 8 kB / 447.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.104, allocations: 0 / 447.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002765/0.1042, allocations: 95.8 kB / 447.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007604/0.105, allocations: 0.5999 MB / 448.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003577/0.1054, allocations: 147.9 kB / 448.5 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002557/0.1056, allocations: 74.64 kB / 448.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.1057, allocations: 3.984 kB / 448.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.143e-05/0.1057, allocations: 38.56 kB / 448.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.777e-06/0.1057, allocations: 7.984 kB / 448.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005267/0.1063, allocations: 181.3 kB / 448.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.054e-05/0.1064, allocations: 118.7 kB / 448.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002072/0.1066, allocations: 130 kB / 449 MB, free: 10.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.1066, allocations: 29.7 kB / 449.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.48e-05/0.1067, allocations: 108.1 kB / 449.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.1068, allocations: 35.58 kB / 449.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.292e-05/0.1069, allocations: 37.7 kB / 449.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.107, allocations: 322.8 kB / 449.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.1071, allocations: 35.97 kB / 449.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.1073, allocations: 129.7 kB / 449.7 MB, free: 9.953 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002724/0.1076, allocations: 197.5 kB / 449.9 MB, free: 9.711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.1076, allocations: 0 / 449.9 MB, free: 9.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003414/0.1079, allocations: 197.1 kB / 450.1 MB, free: 9.512 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.108, allocations: 8 kB / 450.1 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.108, allocations: 0 / 450.1 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.108, allocations: 8.375 kB / 450.1 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/0.1081, allocations: 48.38 kB / 450.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.1082, allocations: 4 kB / 450.2 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.1083, allocations: 31.77 kB / 450.2 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.1083, allocations: 11.94 kB / 450.2 MB, free: 9.402 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.1084, allocations: 129.8 kB / 450.4 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.1086, allocations: 89.44 kB / 450.4 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.311e-05/0.1087, allocations: 16.72 kB / 450.5 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.1087, allocations: 4 kB / 450.5 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.1087, allocations: 4 kB / 450.5 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.1087, allocations: 3.984 kB / 450.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002794/0.109, allocations: 205.5 kB / 450.7 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.109, allocations: 0 / 450.7 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001718/0.1092, allocations: 35.92 kB / 450.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.1092, allocations: 4 kB / 450.7 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.1092, allocations: 4 kB / 450.7 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1092, allocations: 3.984 kB / 450.7 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1092, allocations: 4 kB / 450.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005232/0.1097, allocations: 379.2 kB / 451.1 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.733e-05/0.1098, allocations: 89.05 kB / 451.2 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/0.1098, allocations: 4 kB / 451.2 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.11, allocations: 11.98 kB / 451.2 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.398e-05/0.11, allocations: 12.05 kB / 451.2 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.739e-06/0.11, allocations: 8 kB / 451.2 MB, free: 8.312 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.343e-05/0.1101, allocations: 99.27 kB / 451.3 MB, free: 8.215 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.623e-06/0.1101, allocations: 0 / 451.3 MB, free: 8.215 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003153/0.1104, allocations: 31.88 kB / 451.3 MB, free: 8.184 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 0.0001024/0.1105, allocations: 91.25 kB / 451.4 MB, free: 8.086 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003832/0.1109, allocations: 127.7 kB / 451.6 MB, free: 7.961 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1109, allocations: 0 / 451.6 MB, free: 7.961 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.222e-05/0.111, allocations: 27.92 kB / 451.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004874/0.1115, allocations: 61.27 kB / 451.6 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007918/0.1123, allocations: 394.1 kB / 452 MB, free: 7.461 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003878/0.1127, allocations: 0.7123 MB / 452.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.155e-05/0.1128, allocations: 9.094 kB / 452.7 MB, free: 6.715 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.357e-05/0.1128, allocations: 19.42 kB / 452.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1128, allocations: 0 / 452.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of Templates: time 0.004415/0.1173, allocations: 1.223 MB / 454 MB, free: 5.473 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches