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.007612/0.007612, allocations: 93.06 kB / 15.91 MB, free: 6.273 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.001199/0.001199, allocations: 201.1 kB / 16.84 MB, free: 6.188 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.671/1.671, allocations: 205.1 MB / 222.7 MB, free: 4.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07726/0.07726, allocations: 12.58 MB / 282.6 MB, free: 8.855 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.001884/0.001885, allocations: 83.89 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1141, allocations: 49.4 MB / 392.2 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004223/0.1184, allocations: 2.051 MB / 394.2 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001299/0.1197, allocations: 0.5658 MB / 394.8 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001724/0.12, allocations: 4 kB / 394.8 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.1202, allocations: 15.86 kB / 394.8 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001985/0.1204, allocations: 15.86 kB / 394.8 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003349/0.1207, allocations: 51.89 kB / 394.9 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002204/0.1209, allocations: 119.6 kB / 395 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002277/0.1212, allocations: 57.06 kB / 395 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.1213, allocations: 43.8 kB / 395.1 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001354/0.1214, allocations: 51.7 kB / 395.1 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.649e-05/0.1215, allocations: 8 kB / 395.2 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.813e-05/0.1215, allocations: 8 kB / 395.2 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.922e-05/0.1215, allocations: 27.91 kB / 395.2 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.43e-05/0.1216, allocations: 51.67 kB / 395.2 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002121/0.1218, allocations: 115.9 kB / 395.3 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1219, allocations: 0 / 395.3 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1219, allocations: 0 / 395.3 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.1219, allocations: 4 kB / 395.4 MB, free: 0.5156 MB / 286.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.0008564/0.1227, allocations: 438.9 kB / 395.8 MB, free: 40 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.1228, allocations: 8.031 kB / 395.8 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.521e-05/0.1229, allocations: 12.84 kB / 395.8 MB, free: 20 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002713/0.1231, allocations: 212 kB / 396 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.1232, allocations: 8.375 kB / 396 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.97e-05/0.1232, allocations: 12.38 kB / 396 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005589/0.1238, allocations: 250.9 kB / 396.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.1238, allocations: 3.984 kB / 396.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.18e-05/0.1238, allocations: 12 kB / 396.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.1239, allocations: 8 kB / 396.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000249/0.1241, allocations: 79.88 kB / 396.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007236/0.1248, allocations: 0.5959 MB / 397 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003587/0.1252, allocations: 139.7 kB / 397.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.1254, allocations: 94.73 kB / 397.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.777e-05/0.1254, allocations: 3.984 kB / 397.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.438e-05/0.1255, allocations: 34.56 kB / 397.2 MB, free: 14.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.825e-06/0.1255, allocations: 3.984 kB / 397.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005451/0.1261, allocations: 189.3 kB / 397.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002243/0.1263, allocations: 110.8 kB / 397.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001506/0.1264, allocations: 134 kB / 397.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.1265, allocations: 25.7 kB / 397.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.815e-05/0.1265, allocations: 112 kB / 397.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.667e-05/0.1266, allocations: 27.7 kB / 397.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.113e-05/0.1266, allocations: 33.7 kB / 397.9 MB, free: 13.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.1268, allocations: 327 kB / 398.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.1269, allocations: 31.97 kB / 398.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.1271, allocations: 149.6 kB / 398.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002779/0.1274, allocations: 185.5 kB / 398.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1274, allocations: 0 / 398.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003939/0.1278, allocations: 201.1 kB / 398.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.1278, allocations: 8 kB / 398.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.1278, allocations: 4 kB / 398.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.1278, allocations: 4 kB / 398.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.128, allocations: 51.91 kB / 398.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.128, allocations: 4 kB / 398.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.972e-05/0.1281, allocations: 16.3 kB / 398.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.1281, allocations: 16 kB / 398.8 MB, free: 12.63 MB / 302.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.0001185/0.1283, allocations: 133.7 kB / 399 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.1284, allocations: 89.53 kB / 399.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001724/0.1286, allocations: 16.7 kB / 399.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1286, allocations: 7.938 kB / 399.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.1286, allocations: 0 / 399.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.1286, allocations: 0 / 399.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002869/0.1289, allocations: 213.9 kB / 399.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1289, allocations: 4 kB / 399.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001854/0.1291, allocations: 35.98 kB / 399.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.1291, allocations: 0 / 399.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.1292, allocations: 7.922 kB / 399.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1292, allocations: 7.938 kB / 399.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1292, allocations: 0 / 399.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005358/0.1297, allocations: 375.5 kB / 399.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.621e-05/0.1298, allocations: 88.98 kB / 399.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.804e-05/0.1298, allocations: 7.984 kB / 399.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.13, allocations: 8 kB / 399.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.503e-05/0.13, allocations: 7.984 kB / 399.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.1301, allocations: 7.938 kB / 399.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.327e-05/0.1301, allocations: 103.3 kB / 399.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1301, allocations: 0 / 399.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003282/0.1305, allocations: 27.91 kB / 400 MB, free: 11.41 MB / 302.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.0001823/0.1307, allocations: 99.25 kB / 400.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003627/0.131, allocations: 124.5 kB / 400.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.131, allocations: 4.062 kB / 400.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.1312, allocations: 23.98 kB / 400.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005533/0.1317, allocations: 61 kB / 400.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000899/0.1326, allocations: 439.9 kB / 400.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/0.1331, allocations: 0.7165 MB / 401.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.321e-05/0.1331, allocations: 9.078 kB / 401.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.05e-05/0.1332, allocations: 19.44 kB / 401.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1332, allocations: 0 / 401.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of Templates: time 0.004482/0.1377, allocations: 1.085 MB / 402.5 MB, free: 8.773 MB / 302.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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches