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.001771/0.001771, allocations: 102.1 kB / 16.45 MB, free: 6.461 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.001807/0.001808, allocations: 189 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.535/1.535, allocations: 205.1 MB / 223.3 MB, free: 12.19 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.0802/0.0802, allocations: 12.58 MB / 283.2 MB, free: 15.38 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.001831/0.001831, allocations: 84.94 kB / 394.1 MB, free: 45.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.118, allocations: 49.41 MB / 443.6 MB, free: 496 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003605/0.1217, allocations: 2.051 MB / 445.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.1228, allocations: 0.5347 MB / 446.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001569/0.123, allocations: 7.938 kB / 446.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001447/0.1231, allocations: 15.8 kB / 446.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.194e-05/0.1232, allocations: 31.72 kB / 446.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000391/0.1236, allocations: 63.86 kB / 446.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002494/0.1239, allocations: 123.6 kB / 446.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002357/0.1241, allocations: 61.72 kB / 446.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.1242, allocations: 43.8 kB / 446.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.1243, allocations: 71.62 kB / 446.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.795e-05/0.1244, allocations: 12 kB / 446.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.607e-05/0.1244, allocations: 8 kB / 446.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.617e-05/0.1245, allocations: 23.92 kB / 446.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.058e-05/0.1245, allocations: 59.67 kB / 446.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002283/0.1248, allocations: 127.4 kB / 446.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1248, allocations: 0 / 446.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1248, allocations: 4 kB / 446.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.1248, allocations: 0 / 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.0006636/0.1255, allocations: 438.8 kB / 447.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.1255, allocations: 8.031 kB / 447.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.032e-05/0.1256, allocations: 20.83 kB / 447.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.1259, allocations: 208.1 kB / 447.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.1259, allocations: 8.375 kB / 447.4 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.024e-05/0.1259, allocations: 12.38 kB / 447.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004822/0.1264, allocations: 234.9 kB / 447.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.1264, allocations: 0 / 447.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.1265, allocations: 8 kB / 447.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.1265, allocations: 7.984 kB / 447.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002435/0.1267, allocations: 87.86 kB / 447.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006614/0.1274, allocations: 0.5998 MB / 448.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003508/0.1278, allocations: 151.9 kB / 448.5 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.1279, allocations: 74.58 kB / 448.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/0.128, allocations: 7.984 kB / 448.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.128, allocations: 34.56 kB / 448.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.128, allocations: 0 / 448.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.000497/0.1285, allocations: 177.4 kB / 448.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.903e-05/0.1286, allocations: 118.9 kB / 448.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.1287, allocations: 134.2 kB / 449.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.1288, allocations: 25.7 kB / 449.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.578e-05/0.1289, allocations: 124 kB / 449.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.75e-05/0.1289, allocations: 23.84 kB / 449.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.649e-05/0.129, allocations: 37.7 kB / 449.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.1291, allocations: 318.8 kB / 449.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.1292, allocations: 39.97 kB / 449.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001626/0.1294, allocations: 141.6 kB / 449.8 MB, free: 9.895 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.000412/0.1298, allocations: 278.7 kB / 450 MB, free: 9.555 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.1298, allocations: 11.92 kB / 450.1 MB, free: 9.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000367/0.1302, allocations: 197.3 kB / 450.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.1302, allocations: 4 kB / 450.2 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.1302, allocations: 4 kB / 450.3 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.1302, allocations: 8 kB / 450.3 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.1304, allocations: 43.91 kB / 450.3 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.1304, allocations: 4 kB / 450.3 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.1305, allocations: 28.22 kB / 450.3 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.1306, allocations: 12 kB / 450.3 MB, free: 9.242 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.0001082/0.1307, allocations: 137.7 kB / 450.5 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001512/0.1308, allocations: 93.84 kB / 450.6 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.566e-05/0.1309, allocations: 20.7 kB / 450.6 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.1309, allocations: 4 kB / 450.6 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1309, allocations: 0 / 450.6 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.1309, allocations: 0 / 450.6 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002702/0.1312, allocations: 213.5 kB / 450.8 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.1312, allocations: 4 kB / 450.8 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.1314, allocations: 47.91 kB / 450.9 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.1314, allocations: 240 / 450.9 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.1315, allocations: 11.98 kB / 450.9 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1315, allocations: 0 / 450.9 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1315, allocations: 0 / 450.9 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005391/0.132, allocations: 383.4 kB / 451.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.1321, allocations: 96.97 kB / 451.3 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.522e-05/0.1321, allocations: 8 kB / 451.3 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.1322, allocations: 4 kB / 451.3 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.385e-05/0.1323, allocations: 11.92 kB / 451.4 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/0.1323, allocations: 8 kB / 451.4 MB, free: 8.117 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.098e-05/0.1324, allocations: 95.27 kB / 451.5 MB, free: 8.023 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1324, allocations: 4.062 kB / 451.5 MB, free: 8.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003202/0.1327, allocations: 32 kB / 451.5 MB, free: 7.988 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.0001065/0.1328, allocations: 95.23 kB / 451.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003395/0.1332, allocations: 120.6 kB / 451.7 MB, free: 7.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.1332, allocations: 4.062 kB / 451.7 MB, free: 7.766 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.1333, allocations: 35.84 kB / 451.7 MB, free: 7.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005091/0.1338, allocations: 65.95 kB / 451.8 MB, free: 7.668 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008614/0.1347, allocations: 414.1 kB / 452.2 MB, free: 7.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002824/0.135, allocations: 0.72 MB / 452.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.969e-05/0.135, allocations: 17.45 kB / 453 MB, free: 6.469 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.886e-05/0.1351, allocations: 15.44 kB / 453 MB, free: 6.453 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1351, allocations: 0 / 453 MB, free: 6.453 MB / 334.1 MB Notification: Performance of Templates: time 0.004147/0.1392, allocations: 1.364 MB / 454.3 MB, free: 5.09 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