Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001801/0.001801, allocations: 105.3 kB / 16.45 MB, free: 6.488 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.001493/0.001493, allocations: 192.7 kB / 17.39 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.713/1.713, allocations: 205.1 MB / 223.3 MB, free: 12.22 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.07872/0.07872, 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.002116/0.002117, allocations: 82.27 kB / 394.1 MB, free: 45.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.119, allocations: 49.42 MB / 443.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.005154/0.1242, allocations: 2.658 MB / 446.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00233/0.1265, allocations: 0.9592 MB / 447.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004386/0.127, allocations: 11.94 kB / 447.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003118/0.1274, allocations: 59.33 kB / 447.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00041/0.1278, allocations: 63.44 kB / 447.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009167/0.1287, allocations: 235.5 kB / 447.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006362/0.1294, allocations: 378.9 kB / 447.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004043/0.1298, allocations: 196.7 kB / 448.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002589/0.13, allocations: 139.4 kB / 448.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002516/0.1303, allocations: 151.2 kB / 448.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.138e-05/0.1304, allocations: 32 kB / 448.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.1305, allocations: 63.97 kB / 448.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.1307, allocations: 87.67 kB / 448.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.1309, allocations: 159.1 kB / 448.7 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005627/0.1314, allocations: 394.6 kB / 449.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.1315, allocations: 3.938 kB / 449.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1315, allocations: 0 / 449.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.1315, allocations: 0 / 449.1 MB, free: 11.01 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001357/0.1328, allocations: 0.6469 MB / 449.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.1329, allocations: 8.031 kB / 449.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.133, allocations: 40.47 kB / 449.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006049/0.1336, allocations: 335.9 kB / 450.1 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.175e-05/0.1337, allocations: 24.94 kB / 450.2 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.738e-05/0.1337, allocations: 24.38 kB / 450.2 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.1352, allocations: 0.7441 MB / 450.9 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.1352, allocations: 4 kB / 450.9 MB, free: 9.074 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.203e-05/0.1352, allocations: 12 kB / 450.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.1353, allocations: 8 kB / 450.9 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005671/0.1358, allocations: 227.6 kB / 451.2 MB, free: 8.832 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009522/0.1368, allocations: 0.7682 MB / 451.9 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.1379, allocations: 0.6223 MB / 452.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004441/0.1383, allocations: 267.3 kB / 452.8 MB, free: 7.016 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006694/0.139, allocations: 0.6012 MB / 453.4 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.1391, allocations: 42.5 kB / 453.5 MB, free: 6.234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 1.713e-06/0.1391, allocations: 0 / 453.5 MB, free: 6.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.001218/0.1403, allocations: 0.5174 MB / 454 MB, free: 5.711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000192/0.1405, allocations: 215.6 kB / 454.2 MB, free: 5.457 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.1408, allocations: 254.9 kB / 454.4 MB, free: 5.195 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/0.1408, allocations: 41.64 kB / 454.5 MB, free: 5.148 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.1409, allocations: 148.8 kB / 454.6 MB, free: 5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.309e-05/0.141, allocations: 43.62 kB / 454.7 MB, free: 4.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.1411, allocations: 86.16 kB / 454.8 MB, free: 4.867 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1412, allocations: 346.8 kB / 455.1 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.1415, allocations: 89.06 kB / 455.2 MB, free: 4.434 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004387/0.1419, allocations: 434.9 kB / 455.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006733/0.1426, allocations: 0.5242 MB / 456.1 MB, free: 3.156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.1426, allocations: 4 kB / 456.1 MB, free: 3.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007809/0.1434, allocations: 0.4897 MB / 456.6 MB, free: 2.656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.1434, allocations: 8 kB / 456.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.1434, allocations: 16.16 kB / 456.6 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.274e-05/0.1435, allocations: 16 kB / 456.7 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003268/0.1438, allocations: 119.8 kB / 456.8 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.04e-05/0.1438, allocations: 23.92 kB / 456.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002466/0.1441, allocations: 51.58 kB / 456.8 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.121e-05/0.1441, allocations: 32 kB / 456.9 MB, free: 2.395 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.000208/0.1444, allocations: 187.6 kB / 457.1 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006527/0.145, allocations: 346.1 kB / 457.4 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007626/0.1458, allocations: 356.5 kB / 457.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.1458, allocations: 12.41 kB / 457.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.1458, allocations: 0 / 457.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.1458, allocations: 7.922 kB / 457.8 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004162/0.1463, allocations: 349 kB / 458.1 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.1463, allocations: 0 / 458.1 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003851/0.1467, allocations: 99.88 kB / 458.2 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.1467, allocations: 7.984 kB / 458.2 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.899e-05/0.1467, allocations: 11.98 kB / 458.2 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.1467, allocations: 4 kB / 458.2 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.1467, allocations: 0 / 458.2 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.148, allocations: 0.7786 MB / 459 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.598e-05/0.1481, allocations: 112.8 kB / 459.1 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.121e-05/0.1482, allocations: 23.98 kB / 459.1 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/0.1485, allocations: 24.05 kB / 459.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.1485, allocations: 3.984 kB / 459.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.221e-05/0.1486, allocations: 15.94 kB / 459.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001884/0.1488, allocations: 178 kB / 459.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1488, allocations: 0 / 459.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00059/0.1494, allocations: 87.83 kB / 459.4 MB, free: 15.71 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001921/0.1496, allocations: 123.1 kB / 459.6 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007049/0.1503, allocations: 352 kB / 459.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.1503, allocations: 4 kB / 459.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.759e-05/0.1504, allocations: 29.59 kB / 459.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.1514, allocations: 310.9 kB / 460.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.1529, allocations: 0.7431 MB / 461 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005063/0.1534, allocations: 0.8159 MB / 461.8 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.907e-05/0.1535, allocations: 35.28 kB / 461.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.858e-05/0.1536, allocations: 31.42 kB / 461.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of SimCode: time 2.414e-06/0.1536, allocations: 0 / 461.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of Templates: time 0.009538/0.1631, allocations: 4.799 MB / 466.7 MB, free: 8.406 MB / 350.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches