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.001923/0.001923, allocations: 105.1 kB / 16.45 MB, free: 6.43 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.002025/0.002025, allocations: 189 kB / 17.39 MB, free: 5.656 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.594/1.594, allocations: 205.1 MB / 223.3 MB, free: 12.2 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.09163/0.09163, allocations: 12.59 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.00192/0.00192, allocations: 90.06 kB / 394.1 MB, free: 45.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1023, allocations: 49.41 MB / 443.6 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003417/0.1057, allocations: 2.047 MB / 445.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009433/0.1067, allocations: 0.5502 MB / 446.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.953e-05/0.1068, allocations: 0 / 446.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001109/0.1069, allocations: 19.8 kB / 446.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.251e-05/0.107, allocations: 31.72 kB / 446.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002585/0.1073, allocations: 55.88 kB / 446.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001742/0.1075, allocations: 127.6 kB / 446.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.1076, allocations: 57.78 kB / 446.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.015e-05/0.1077, allocations: 55.72 kB / 446.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.435e-05/0.1078, allocations: 55.72 kB / 446.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.833e-05/0.1078, allocations: 12 kB / 446.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.742e-05/0.1079, allocations: 8 kB / 446.6 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.034e-05/0.1079, allocations: 31.89 kB / 446.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.705e-05/0.108, allocations: 55.67 kB / 446.6 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001783/0.1082, allocations: 123.6 kB / 446.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1082, allocations: 0 / 446.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1082, allocations: 0 / 446.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.1082, allocations: 3.938 kB / 446.8 MB, free: 13.35 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005775/0.1088, allocations: 442.9 kB / 447.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.1088, allocations: 8.031 kB / 447.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.32e-05/0.1089, allocations: 16.75 kB / 447.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002579/0.1091, allocations: 212.1 kB / 447.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.1091, allocations: 12.31 kB / 447.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.98e-05/0.1092, allocations: 12.38 kB / 447.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004497/0.1096, allocations: 231 kB / 447.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.1097, allocations: 3.938 kB / 447.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.1097, allocations: 8 kB / 447.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.1097, allocations: 4 kB / 447.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002387/0.1099, allocations: 79.88 kB / 447.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006484/0.1106, allocations: 0.5998 MB / 448.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000322/0.1109, allocations: 147.9 kB / 448.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.1111, allocations: 78.58 kB / 448.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.1111, allocations: 7.922 kB / 448.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.1112, allocations: 34.56 kB / 448.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.1112, allocations: 0 / 448.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004936/0.1117, allocations: 185.4 kB / 448.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.432e-05/0.1118, allocations: 110.8 kB / 448.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.1119, allocations: 134.2 kB / 449.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.1119, allocations: 25.7 kB / 449.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.531e-05/0.112, allocations: 123.9 kB / 449.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.112, allocations: 27.64 kB / 449.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.219e-05/0.1121, allocations: 37.7 kB / 449.3 MB, free: 10.56 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.1122, allocations: 326.8 kB / 449.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.1123, allocations: 43.91 kB / 449.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/0.1124, allocations: 129.7 kB / 449.8 MB, free: 10.02 MB / 334.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.0003905/0.1128, allocations: 282.6 kB / 450 MB, free: 9.672 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1129, allocations: 4 kB / 450 MB, free: 9.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003507/0.1132, allocations: 201.1 kB / 450.2 MB, free: 9.465 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.1132, allocations: 4 kB / 450.2 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.1132, allocations: 4 kB / 450.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.1133, allocations: 4 kB / 450.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.1134, allocations: 44.39 kB / 450.3 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.1134, allocations: 7.984 kB / 450.3 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.1135, allocations: 23.84 kB / 450.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.1136, allocations: 12 kB / 450.3 MB, free: 9.367 MB / 334.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.000118/0.1137, allocations: 141.7 kB / 450.5 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.1139, allocations: 89.81 kB / 450.6 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.545e-05/0.1139, allocations: 16.72 kB / 450.6 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.1139, allocations: 4.234 kB / 450.6 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1139, allocations: 0 / 450.6 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.114, allocations: 12.06 kB / 450.6 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002578/0.1142, allocations: 213.4 kB / 450.8 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1142, allocations: 0 / 450.8 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.1144, allocations: 47.91 kB / 450.8 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.1145, allocations: 0 / 450.8 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.1145, allocations: 4 kB / 450.9 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1145, allocations: 0 / 450.9 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1145, allocations: 0 / 450.9 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005239/0.115, allocations: 391.2 kB / 451.2 MB, free: 8.383 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.052e-05/0.1151, allocations: 85.05 kB / 451.3 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.619e-05/0.1151, allocations: 15.98 kB / 451.3 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.1153, allocations: 4 kB / 451.3 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.91e-05/0.1153, allocations: 3.984 kB / 451.3 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.906e-06/0.1153, allocations: 12.06 kB / 451.4 MB, free: 8.246 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.655e-05/0.1154, allocations: 103.2 kB / 451.5 MB, free: 8.145 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1154, allocations: 0 / 451.5 MB, free: 8.145 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003318/0.1157, allocations: 39.84 kB / 451.5 MB, free: 8.105 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.096e-05/0.1158, allocations: 91.25 kB / 451.6 MB, free: 8.008 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003294/0.1162, allocations: 128.2 kB / 451.7 MB, free: 7.883 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1162, allocations: 3.938 kB / 451.7 MB, free: 7.879 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.474e-05/0.1163, allocations: 31.91 kB / 451.7 MB, free: 7.848 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004685/0.1168, allocations: 57.98 kB / 451.8 MB, free: 7.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008614/0.1176, allocations: 423.1 kB / 452.2 MB, free: 7.348 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.1179, allocations: 0.7162 MB / 452.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.02e-05/0.118, allocations: 21.06 kB / 452.9 MB, free: 6.586 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.774e-05/0.118, allocations: 15.44 kB / 453 MB, free: 6.57 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.118, allocations: 0 / 453 MB, free: 6.57 MB / 334.1 MB Notification: Performance of Templates: time 0.004238/0.1223, allocations: 1.348 MB / 454.3 MB, free: 5.223 MB / 334.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches