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.001078/0.001078, allocations: 115.2 kB / 17.29 MB, free: 6.324 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.000972/0.000972, allocations: 197.3 kB / 18.21 MB, free: 5.398 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.348/1.348, allocations: 222.9 MB / 241.9 MB, free: 13.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001217, allocations: 47.06 kB / 300.8 MB, free: 5.926 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1168, allocations: 49.45 MB / 350.2 MB, free: 4.477 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004921/0.1218, allocations: 2.711 MB / 352.9 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001933/0.1237, allocations: 0.896 MB / 353.8 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003493/0.1241, allocations: 15.88 kB / 353.9 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002969/0.1245, allocations: 43.58 kB / 353.9 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003449/0.1248, allocations: 39.7 kB / 353.9 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008007/0.1256, allocations: 216.8 kB / 354.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000499/0.1262, allocations: 390.9 kB / 354.5 MB, free: 160 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003866/0.1265, allocations: 188.8 kB / 354.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002236/0.1268, allocations: 131.4 kB / 354.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002216/0.127, allocations: 147.2 kB / 355 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.852e-05/0.1271, allocations: 35.94 kB / 355 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.1272, allocations: 71.95 kB / 355.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.1273, allocations: 79.75 kB / 355.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.1275, allocations: 159 kB / 355.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003859/0.1279, allocations: 315.6 kB / 355.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1279, allocations: 0 / 355.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.128, allocations: 4 kB / 355.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.128, allocations: 0 / 355.6 MB, free: 15.04 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.001274/0.1293, allocations: 0.6313 MB / 356.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.1293, allocations: 11.89 kB / 356.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.1294, allocations: 40.47 kB / 356.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004944/0.1299, allocations: 331.9 kB / 356.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.02e-05/0.13, allocations: 20.94 kB / 356.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.499e-05/0.1301, allocations: 28.31 kB / 356.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.1316, allocations: 0.7522 MB / 357.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.1316, allocations: 3.938 kB / 357.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.54e-05/0.1316, allocations: 12 kB / 357.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.1317, allocations: 4 kB / 357.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005666/0.1322, allocations: 223.8 kB / 357.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000915/0.1331, allocations: 0.7719 MB / 358.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.1342, allocations: 0.6151 MB / 359.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004703/0.1347, allocations: 271.7 kB / 359.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007981/0.1355, allocations: 0.5933 MB / 359.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.1356, allocations: 42.56 kB / 360 MB, free: 10.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.575e-06/0.1356, allocations: 0 / 360 MB, free: 10.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.001233/0.1368, allocations: 0.5362 MB / 360.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001401/0.137, allocations: 203.9 kB / 360.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000275/0.1373, allocations: 254.6 kB / 361 MB, free: 9.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.743e-05/0.1373, allocations: 29.7 kB / 361 MB, free: 9.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.1374, allocations: 156.7 kB / 361.1 MB, free: 9.059 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.066e-05/0.1375, allocations: 51.64 kB / 361.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.1376, allocations: 82.25 kB / 361.3 MB, free: 8.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1378, allocations: 350.8 kB / 361.6 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.138, allocations: 85.06 kB / 361.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004158/0.1384, allocations: 430.9 kB / 362.1 MB, free: 7.898 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006412/0.139, allocations: 0.5281 MB / 362.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/0.139, allocations: 4 kB / 362.6 MB, free: 7.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008709/0.1399, allocations: 0.4896 MB / 363.1 MB, free: 6.707 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.14, allocations: 14.66 kB / 363.1 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/0.14, allocations: 12 kB / 363.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.595e-05/0.14, allocations: 16.42 kB / 363.2 MB, free: 6.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.1403, allocations: 123.8 kB / 363.3 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.168e-05/0.1404, allocations: 19.94 kB / 363.3 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002902/0.1407, allocations: 55.58 kB / 363.4 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.1407, allocations: 28.22 kB / 363.4 MB, free: 6.445 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.0002235/0.1409, allocations: 193.5 kB / 363.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006368/0.1416, allocations: 338.2 kB / 363.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000701/0.1423, allocations: 372.4 kB / 364.3 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.1423, allocations: 4 kB / 364.3 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.1423, allocations: 4 kB / 364.3 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.1423, allocations: 3.984 kB / 364.3 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004133/0.1428, allocations: 337 kB / 364.6 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/0.1428, allocations: 4 kB / 364.6 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004034/0.1432, allocations: 99.86 kB / 364.7 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.1432, allocations: 3.938 kB / 364.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.988e-05/0.1432, allocations: 12 kB / 364.7 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.624e-06/0.1433, allocations: 11.94 kB / 364.8 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1433, allocations: 0 / 364.8 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.1446, allocations: 0.7709 MB / 365.5 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.1447, allocations: 124.5 kB / 365.6 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.883e-05/0.1447, allocations: 12 kB / 365.7 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002592/0.145, allocations: 19.98 kB / 365.7 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.137e-05/0.1451, allocations: 11.98 kB / 365.7 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.128e-05/0.1451, allocations: 16 kB / 365.7 MB, free: 4.027 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001874/0.1453, allocations: 193.9 kB / 365.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1453, allocations: 0 / 365.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005581/0.1459, allocations: 68 kB / 366 MB, free: 3.77 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.0002018/0.1461, allocations: 127.1 kB / 366.1 MB, free: 3.637 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008608/0.147, allocations: 385.4 kB / 366.5 MB, free: 3.258 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.147, allocations: 192 / 366.5 MB, free: 3.258 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.1471, allocations: 35.91 kB / 366.5 MB, free: 3.223 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.1481, allocations: 311.3 kB / 366.8 MB, free: 2.914 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001573/0.1497, allocations: 0.8975 MB / 367.7 MB, free: 1.977 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.1501, allocations: 0.812 MB / 368.5 MB, free: 1.141 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.921e-05/0.1502, allocations: 27.44 kB / 368.5 MB, free: 1.113 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1502, allocations: 0 / 368.5 MB, free: 1.113 MB / 302.1 MB Notification: Performance of Templates: time 0.1954/0.3456, allocations: 4.459 MB / 373 MB, free: 24.77 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/jenkins1/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/jenkins1/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