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.001727/0.001726, allocations: 109.9 kB / 16.45 MB, free: 6.453 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.001913/0.001914, allocations: 184.9 kB / 17.38 MB, free: 5.688 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.515/1.515, 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.07224/0.07224, 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.001854/0.001854, allocations: 93.39 kB / 394.2 MB, free: 45.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09702/0.09888, allocations: 49.4 MB / 443.6 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003355/0.1023, allocations: 1.989 MB / 445.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.1036, allocations: 0.5774 MB / 446.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001603/0.1038, allocations: 4 kB / 446.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001643/0.104, allocations: 15.8 kB / 446.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001934/0.1042, allocations: 31.73 kB / 446.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.1045, allocations: 51.88 kB / 446.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000193/0.1047, allocations: 123.6 kB / 446.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001882/0.1049, allocations: 69.27 kB / 446.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.762e-05/0.105, allocations: 51.8 kB / 446.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001019/0.1051, allocations: 55.75 kB / 446.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.343e-05/0.1051, allocations: 15.94 kB / 446.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.399e-05/0.1052, allocations: 12 kB / 446.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.751e-05/0.1052, allocations: 23.92 kB / 446.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.738e-05/0.1053, allocations: 63.61 kB / 446.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000219/0.1055, allocations: 115.6 kB / 446.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.727e-06/0.1055, allocations: 4 kB / 446.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1056, allocations: 0 / 446.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.1056, 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.000854/0.1064, allocations: 431 kB / 447.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.1065, allocations: 8.031 kB / 447.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.335e-05/0.1066, allocations: 20.73 kB / 447.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003159/0.1069, allocations: 204.1 kB / 447.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.1069, allocations: 8.375 kB / 447.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.22e-05/0.107, allocations: 12.38 kB / 447.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005639/0.1075, allocations: 254.8 kB / 447.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.1075, allocations: 0 / 447.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.267e-05/0.1076, allocations: 4 kB / 447.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.1076, allocations: 8 kB / 447.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000277/0.1079, allocations: 91.75 kB / 447.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007443/0.1086, allocations: 0.5959 MB / 448.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003942/0.109, allocations: 147.9 kB / 448.5 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001617/0.1092, allocations: 78.58 kB / 448.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.584e-05/0.1093, allocations: 11.98 kB / 448.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.1093, allocations: 34.5 kB / 448.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.1093, allocations: 0 / 448.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005366/0.1098, allocations: 185.4 kB / 448.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.64e-05/0.1099, allocations: 122.8 kB / 448.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.1101, allocations: 130.1 kB / 449.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.1101, allocations: 25.7 kB / 449.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.215e-05/0.1102, allocations: 108 kB / 449.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.888e-05/0.1102, allocations: 31.64 kB / 449.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.209e-05/0.1102, allocations: 33.66 kB / 449.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.1104, allocations: 326.8 kB / 449.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.1105, allocations: 39.97 kB / 449.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.1107, allocations: 133.7 kB / 449.7 MB, free: 9.945 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.111, allocations: 197.5 kB / 449.9 MB, free: 9.703 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1111, allocations: 0 / 449.9 MB, free: 9.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000376/0.1114, allocations: 193.6 kB / 450.1 MB, free: 9.508 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.1115, allocations: 4 kB / 450.1 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.1115, allocations: 4 kB / 450.1 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.1115, allocations: 4 kB / 450.1 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.1117, allocations: 51.91 kB / 450.2 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.1117, allocations: 7.938 kB / 450.2 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.1118, allocations: 19.83 kB / 450.2 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.1118, allocations: 16 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.0001068/0.112, allocations: 133.8 kB / 450.4 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.1121, allocations: 85.88 kB / 450.4 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.346e-05/0.1122, allocations: 20.7 kB / 450.5 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1122, allocations: 0 / 450.5 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.1122, allocations: 8.031 kB / 450.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.1122, allocations: 3.938 kB / 450.5 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000285/0.1125, allocations: 205.5 kB / 450.7 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.1125, allocations: 0 / 450.7 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001764/0.1127, allocations: 39.97 kB / 450.7 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.1127, allocations: 0 / 450.7 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.1127, allocations: 8 kB / 450.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1128, allocations: 0 / 450.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1128, allocations: 4 kB / 450.7 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005924/0.1134, allocations: 387.2 kB / 451.1 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.972e-05/0.1134, allocations: 85.05 kB / 451.2 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.043e-05/0.1135, allocations: 8 kB / 451.2 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.1136, allocations: 7.984 kB / 451.2 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/0.1136, allocations: 4 kB / 451.2 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-06/0.1137, allocations: 4 kB / 451.2 MB, free: 8.316 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.025e-05/0.1137, allocations: 99.27 kB / 451.3 MB, free: 8.219 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1137, allocations: 0 / 451.3 MB, free: 8.219 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003059/0.114, allocations: 27.94 kB / 451.3 MB, free: 8.191 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.0001076/0.1141, allocations: 111.2 kB / 451.4 MB, free: 8.074 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003279/0.1145, allocations: 116.9 kB / 451.6 MB, free: 7.961 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1145, allocations: 4.938 kB / 451.6 MB, free: 7.957 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.671e-05/0.1146, allocations: 31.97 kB / 451.6 MB, free: 7.926 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000506/0.1151, allocations: 60.31 kB / 451.6 MB, free: 7.867 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007603/0.1159, allocations: 377.8 kB / 452 MB, free: 7.469 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.1162, allocations: 0.7201 MB / 452.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.512e-05/0.1163, allocations: 9.078 kB / 452.7 MB, free: 6.715 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.619e-05/0.1163, allocations: 15.44 kB / 452.8 MB, free: 6.699 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1163, allocations: 0 / 452.8 MB, free: 6.699 MB / 334.1 MB Notification: Performance of Templates: time 0.004294/0.1206, allocations: 1.23 MB / 454 MB, free: 5.469 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