Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 106.1 kB / 16.45 MB, free: 6.398 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.001454/0.001454, allocations: 192.2 kB / 17.39 MB, free: 5.645 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.618/1.618, 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.07966/0.07965, 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.002038/0.002038, allocations: 91.53 kB / 394.1 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1053, allocations: 49.41 MB / 443.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00312/0.1085, allocations: 1.989 MB / 445.5 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008402/0.1093, allocations: 0.5463 MB / 446.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.531e-05/0.1094, allocations: 3.938 kB / 446.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.1095, allocations: 19.8 kB / 446.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.26e-05/0.1096, allocations: 27.77 kB / 446.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002547/0.1099, allocations: 47.89 kB / 446.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001435/0.11, allocations: 123.6 kB / 446.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.1102, allocations: 61.33 kB / 446.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.427e-05/0.1103, allocations: 55.72 kB / 446.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.263e-05/0.1103, allocations: 55.77 kB / 446.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.026e-05/0.1104, allocations: 8 kB / 446.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.833e-05/0.1104, allocations: 12 kB / 446.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.051e-05/0.1104, allocations: 27.92 kB / 446.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.231e-05/0.1105, allocations: 59.66 kB / 446.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001679/0.1107, allocations: 119.6 kB / 446.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1107, allocations: 0 / 446.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1107, allocations: 0 / 446.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1107, allocations: 4 kB / 446.7 MB, free: 13.32 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005857/0.1113, allocations: 431 kB / 447.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.1114, allocations: 8.031 kB / 447.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.084e-05/0.1114, allocations: 20.75 kB / 447.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000224/0.1116, allocations: 196.2 kB / 447.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.1117, allocations: 8.375 kB / 447.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.833e-05/0.1117, allocations: 16.31 kB / 447.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004407/0.1121, allocations: 242.8 kB / 447.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.1122, allocations: 3.938 kB / 447.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.1122, allocations: 8 kB / 447.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.1122, allocations: 0 / 447.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002386/0.1124, allocations: 87.88 kB / 447.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006016/0.113, allocations: 0.5881 MB / 448.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002505/0.1133, allocations: 151.9 kB / 448.4 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.1135, allocations: 74.58 kB / 448.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.1135, allocations: 4 kB / 448.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.1135, allocations: 46.48 kB / 448.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.1135, allocations: 0 / 448.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004585/0.114, allocations: 177.3 kB / 448.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.844e-05/0.1141, allocations: 110.8 kB / 448.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.1142, allocations: 130.2 kB / 449 MB, free: 10.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.1142, allocations: 29.7 kB / 449 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.762e-05/0.1143, allocations: 115.9 kB / 449.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.011e-05/0.1143, allocations: 27.64 kB / 449.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.891e-05/0.1144, allocations: 33.72 kB / 449.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.1145, allocations: 318.8 kB / 449.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.1146, allocations: 43.86 kB / 449.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.1148, allocations: 128.8 kB / 449.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.1151, allocations: 180.7 kB / 449.8 MB, free: 9.805 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.1151, allocations: 4 kB / 449.8 MB, free: 9.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003288/0.1154, allocations: 185.2 kB / 450 MB, free: 9.613 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.1155, allocations: 4 kB / 450 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.1155, allocations: 4 kB / 450 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.1155, allocations: 8.375 kB / 450 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.1157, allocations: 51.91 kB / 450.1 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.1157, allocations: 11.94 kB / 450.1 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.106e-05/0.1158, allocations: 19.83 kB / 450.1 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.1158, allocations: 12 kB / 450.1 MB, free: 9.504 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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 9.628e-05/0.1159, allocations: 125.8 kB / 450.2 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.116, allocations: 73.59 kB / 450.3 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.157e-05/0.1161, allocations: 20.66 kB / 450.3 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.1161, allocations: 8.406 kB / 450.3 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1161, allocations: 4 kB / 450.3 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1161, allocations: 3.984 kB / 450.4 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002486/0.1164, allocations: 205.5 kB / 450.6 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1164, allocations: 0 / 450.6 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001619/0.1165, allocations: 47.84 kB / 450.6 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1165, allocations: 0 / 450.6 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.1166, allocations: 7.938 kB / 450.6 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1166, allocations: 0 / 450.6 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1166, allocations: 0 / 450.6 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004504/0.117, allocations: 375.4 kB / 451 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.176e-05/0.1171, allocations: 89.05 kB / 451.1 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.1171, allocations: 3.938 kB / 451.1 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/0.1172, allocations: 11.98 kB / 451.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.509e-05/0.1173, allocations: 8.062 kB / 451.1 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-06/0.1173, allocations: 8 kB / 451.1 MB, free: 8.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.636e-05/0.1174, allocations: 99.83 kB / 451.2 MB, free: 8.332 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1174, allocations: 0 / 451.2 MB, free: 8.332 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003009/0.1177, allocations: 31.84 kB / 451.2 MB, free: 8.301 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 (14): * Single equations (assignments): 14 * 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.297e-05/0.1178, allocations: 99.23 kB / 451.3 MB, free: 8.195 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002928/0.1181, allocations: 115.8 kB / 451.4 MB, free: 8.082 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1181, allocations: 0 / 451.4 MB, free: 8.082 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.608e-05/0.1182, allocations: 31.92 kB / 451.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004557/0.1186, allocations: 44.94 kB / 451.5 MB, free: 8.008 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006811/0.1193, allocations: 394.2 kB / 451.9 MB, free: 7.594 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.1196, allocations: 0.7084 MB / 452.6 MB, free: 6.859 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.782e-05/0.1197, allocations: 20.59 kB / 452.6 MB, free: 6.84 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.255e-05/0.1197, allocations: 11.44 kB / 452.6 MB, free: 6.828 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1197, allocations: 0 / 452.6 MB, free: 6.828 MB / 334.1 MB Notification: Performance of Templates: time 0.004016/0.1238, allocations: 1.192 MB / 453.8 MB, free: 5.637 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches