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.001264/0.001264, allocations: 107.4 kB / 16.45 MB, free: 6.426 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.001328/0.001328, allocations: 186.9 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.646/1.646, 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.08116/0.08116, 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.00191/0.00191, allocations: 86.41 kB / 394.1 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1038, allocations: 49.4 MB / 443.5 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003484/0.1073, allocations: 2.051 MB / 445.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009476/0.1083, allocations: 0.5424 MB / 446.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.1084, allocations: 4 kB / 446.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.1086, allocations: 19.8 kB / 446.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.593e-05/0.1087, allocations: 27.72 kB / 446.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002845/0.109, allocations: 51.88 kB / 446.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001763/0.1091, allocations: 127.5 kB / 446.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.1093, allocations: 69.75 kB / 446.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.1094, allocations: 47.8 kB / 446.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.862e-05/0.1095, allocations: 59.7 kB / 446.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.309e-05/0.1096, allocations: 8 kB / 446.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.973e-05/0.1096, allocations: 16 kB / 446.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.014e-05/0.1096, allocations: 27.91 kB / 446.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.886e-05/0.1097, allocations: 55.67 kB / 446.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001989/0.1099, allocations: 131.5 kB / 446.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1099, allocations: 0 / 446.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1099, allocations: 0 / 446.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.84e-06/0.1099, allocations: 3.938 kB / 446.8 MB, free: 13.23 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.000718/0.1106, allocations: 434.9 kB / 447.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1107, allocations: 12.03 kB / 447.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.269e-05/0.1107, allocations: 20.75 kB / 447.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002942/0.111, allocations: 208.1 kB / 447.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.1111, allocations: 12.38 kB / 447.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.043e-05/0.1111, allocations: 12.38 kB / 447.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005218/0.1116, allocations: 230.9 kB / 447.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.1117, allocations: 0 / 447.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.1117, allocations: 4 kB / 447.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.1117, allocations: 7.984 kB / 447.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002509/0.112, allocations: 79.88 kB / 447.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007086/0.1127, allocations: 0.592 MB / 448.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003344/0.113, allocations: 151.9 kB / 448.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.1132, allocations: 70.64 kB / 448.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.1132, allocations: 11.97 kB / 448.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.382e-05/0.1133, allocations: 42.5 kB / 448.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.1133, allocations: 0 / 448.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005236/0.1138, allocations: 181.4 kB / 448.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/0.1139, allocations: 114.8 kB / 448.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.114, allocations: 130.3 kB / 449.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.114, allocations: 33.7 kB / 449.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.601e-05/0.1141, allocations: 123.9 kB / 449.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.1141, allocations: 23.66 kB / 449.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.475e-05/0.1142, allocations: 37.7 kB / 449.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.1143, allocations: 322.8 kB / 449.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.1144, allocations: 39.91 kB / 449.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001777/0.1146, allocations: 146 kB / 449.8 MB, free: 9.898 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.0005089/0.1152, allocations: 278.7 kB / 450 MB, free: 9.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1152, allocations: 0 / 450 MB, free: 9.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003999/0.1156, allocations: 197.5 kB / 450.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.1156, allocations: 15.88 kB / 450.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.1156, allocations: 4 kB / 450.3 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.502e-05/0.1157, allocations: 4 kB / 450.3 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.1158, allocations: 43.97 kB / 450.3 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.484e-05/0.1158, allocations: 7.938 kB / 450.3 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001095/0.116, allocations: 23.83 kB / 450.3 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.116, allocations: 8 kB / 450.3 MB, free: 9.254 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.0001595/0.1161, allocations: 137.8 kB / 450.5 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001739/0.1163, allocations: 93.44 kB / 450.6 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.991e-05/0.1164, allocations: 20.7 kB / 450.6 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.1164, allocations: 0 / 450.6 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1164, allocations: 0 / 450.6 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.1164, allocations: 4 kB / 450.6 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003365/0.1168, allocations: 205.5 kB / 450.8 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1168, allocations: 0 / 450.8 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000214/0.117, allocations: 43.97 kB / 450.8 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.632e-05/0.117, allocations: 11.98 kB / 450.8 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.117, allocations: 0 / 450.8 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.1171, allocations: 4 kB / 450.8 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1171, allocations: 0 / 450.8 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006472/0.1177, allocations: 391.2 kB / 451.2 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.177e-05/0.1178, allocations: 85.05 kB / 451.3 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.1178, allocations: 4 kB / 451.3 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.118, allocations: 7.984 kB / 451.3 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.776e-05/0.118, allocations: 4 kB / 451.3 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.118, allocations: 8 kB / 451.3 MB, free: 8.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.781e-05/0.1181, allocations: 111.2 kB / 451.4 MB, free: 8.043 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1181, allocations: 0 / 451.4 MB, free: 8.043 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003195/0.1185, allocations: 31.84 kB / 451.5 MB, free: 8.012 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.0001228/0.1186, allocations: 99.25 kB / 451.6 MB, free: 7.906 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003672/0.119, allocations: 120.7 kB / 451.7 MB, free: 7.789 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.119, allocations: 3.938 kB / 451.7 MB, free: 7.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.1191, allocations: 36.06 kB / 451.7 MB, free: 7.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005255/0.1196, allocations: 78.2 kB / 451.8 MB, free: 7.676 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009146/0.1206, allocations: 418.5 kB / 452.2 MB, free: 7.234 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/0.1209, allocations: 0.7162 MB / 452.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.622e-05/0.1209, allocations: 9.078 kB / 452.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.194e-05/0.121, allocations: 19.44 kB / 453 MB, free: 6.465 MB / 334.1 MB Notification: Performance of SimCode: time 1.91e-07/0.121, allocations: 0 / 453 MB, free: 6.465 MB / 334.1 MB Notification: Performance of Templates: time 0.004384/0.1254, allocations: 1.391 MB / 454.3 MB, free: 5.074 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