Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.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.001499/0.001499, allocations: 104.7 kB / 16.51 MB, free: 6.652 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.00118/0.00118, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 241.1 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 51.67 kB / 299.9 MB, free: 6.309 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1083, allocations: 49.45 MB / 349.4 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004098/0.1125, allocations: 2.719 MB / 352.1 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001751/0.1143, allocations: 0.8921 MB / 353 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00035/0.1146, allocations: 11.94 kB / 353 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002795/0.115, allocations: 47.58 kB / 353.1 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003364/0.1153, allocations: 51.64 kB / 353.1 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008501/0.1162, allocations: 206.2 kB / 353.3 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004653/0.1167, allocations: 358.9 kB / 353.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003356/0.117, allocations: 176.8 kB / 353.8 MB, free: 388 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001973/0.1172, allocations: 115.4 kB / 353.9 MB, free: 272 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.1174, allocations: 147.1 kB / 354.1 MB, free: 124 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.537e-05/0.1175, allocations: 16 kB / 354.1 MB, free: 108 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000117/0.1176, allocations: 51.95 kB / 354.2 MB, free: 56 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.1177, allocations: 67.84 kB / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.1179, allocations: 150.9 kB / 354.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003602/0.1182, allocations: 378.9 kB / 354.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1183, allocations: 0 / 354.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1183, allocations: 8 kB / 354.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.926e-06/0.1183, allocations: 0 / 354.7 MB, free: 15.46 MB / 302.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.001016/0.1193, allocations: 0.6391 MB / 355.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.1193, allocations: 12.03 kB / 355.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.93e-05/0.1194, allocations: 36.47 kB / 355.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003726/0.1198, allocations: 331.8 kB / 355.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.1198, allocations: 24.94 kB / 355.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.832e-05/0.1199, allocations: 24.38 kB / 355.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.1212, allocations: 0.7597 MB / 356.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.1212, allocations: 4 kB / 356.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/0.1213, allocations: 8 kB / 356.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.1213, allocations: 8 kB / 356.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005238/0.1218, allocations: 215.8 kB / 356.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008179/0.1226, allocations: 0.7797 MB / 357.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.1237, allocations: 0.6159 MB / 358.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004489/0.1242, allocations: 267.8 kB / 358.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006292/0.1248, allocations: 0.5895 MB / 359 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.1248, allocations: 42.56 kB / 359.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.615e-06/0.1248, allocations: 0 / 359.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.001191/0.126, allocations: 0.5283 MB / 359.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.1262, allocations: 216 kB / 359.8 MB, free: 9.918 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.1265, allocations: 250.6 kB / 360.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.192e-05/0.1265, allocations: 37.7 kB / 360.1 MB, free: 9.621 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.793e-05/0.1266, allocations: 152.7 kB / 360.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.659e-05/0.1267, allocations: 43.59 kB / 360.3 MB, free: 9.426 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.497e-05/0.1268, allocations: 82.25 kB / 360.4 MB, free: 9.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1269, allocations: 350.8 kB / 360.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.1271, allocations: 85.06 kB / 360.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003681/0.1275, allocations: 431 kB / 361.2 MB, free: 8.316 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005762/0.1281, allocations: 0.5323 MB / 361.8 MB, free: 7.621 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.1281, allocations: 0 / 361.8 MB, free: 7.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007521/0.1288, allocations: 0.4936 MB / 362.2 MB, free: 7.121 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.1289, allocations: 8 kB / 362.3 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/0.1289, allocations: 12 kB / 362.3 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.628e-05/0.1289, allocations: 16 kB / 362.3 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003119/0.1292, allocations: 119.8 kB / 362.4 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.154e-05/0.1293, allocations: 23.92 kB / 362.4 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002608/0.1295, allocations: 51.58 kB / 362.5 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.11e-05/0.1296, allocations: 32 kB / 362.5 MB, free: 6.863 MB / 302.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.0002007/0.1298, allocations: 197.6 kB / 362.7 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006017/0.1304, allocations: 341 kB / 363 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006711/0.1311, allocations: 369.5 kB / 363.4 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.1311, allocations: 4 kB / 363.4 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1311, allocations: 0 / 363.4 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.1311, allocations: 7.984 kB / 363.4 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003676/0.1315, allocations: 341 kB / 363.7 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.1315, allocations: 0 / 363.7 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003915/0.1319, allocations: 107.8 kB / 363.8 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.1319, allocations: 4 kB / 363.8 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.786e-05/0.132, allocations: 11.98 kB / 363.9 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.132, allocations: 4 kB / 363.9 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.132, allocations: 4 kB / 363.9 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.1332, allocations: 0.7708 MB / 364.6 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.014e-05/0.1333, allocations: 120.5 kB / 364.8 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.548e-05/0.1333, allocations: 19.98 kB / 364.8 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002466/0.1336, allocations: 23.98 kB / 364.8 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.002e-05/0.1337, allocations: 7.984 kB / 364.8 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.1337, allocations: 12 kB / 364.8 MB, free: 4.438 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001708/0.1339, allocations: 186 kB / 365 MB, free: 4.254 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1339, allocations: 0 / 365 MB, free: 4.254 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005201/0.1344, allocations: 76 kB / 365.1 MB, free: 4.18 MB / 302.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.000196/0.1346, allocations: 127.2 kB / 365.2 MB, free: 4.047 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006909/0.1353, allocations: 354.6 kB / 365.5 MB, free: 3.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1353, allocations: 0 / 365.5 MB, free: 3.699 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.1354, allocations: 35.97 kB / 365.6 MB, free: 3.664 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009935/0.1364, allocations: 309.6 kB / 365.9 MB, free: 3.355 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.1379, allocations: 0.8698 MB / 366.8 MB, free: 2.453 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.1383, allocations: 0.8084 MB / 367.6 MB, free: 1.621 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001186/0.1384, allocations: 43.25 kB / 367.6 MB, free: 1.578 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.049e-05/0.1385, allocations: 27.44 kB / 367.6 MB, free: 1.551 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1385, allocations: 0 / 367.6 MB, free: 1.551 MB / 302.1 MB Notification: Performance of Templates: time 0.1636/0.3021, allocations: 4.261 MB / 371.9 MB, free: 24.7 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWith_AD_DA_Effects/ClockedWith_AD_DA_Effects.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches