Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001234/0.001234, allocations: 104 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001424/0.001424, allocations: 209.7 kB / 18.14 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246.3 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 61.53 kB / 306.3 MB, free: 1.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09307/0.09428, allocations: 50.53 MB / 356.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.005466/0.09979, allocations: 2.731 MB / 359.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002511/0.1023, allocations: 0.9389 MB / 360.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005324/0.1029, allocations: 7.938 kB / 360.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004064/0.1034, allocations: 39.64 kB / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004974/0.1039, allocations: 47.64 kB / 360.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008592/0.1048, allocations: 211.1 kB / 360.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005706/0.1053, allocations: 354.9 kB / 361.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000404/0.1058, allocations: 184.7 kB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002153/0.106, allocations: 119.4 kB / 361.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002436/0.1062, allocations: 143.2 kB / 361.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.53e-05/0.1063, allocations: 16 kB / 361.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.1065, allocations: 51.97 kB / 361.6 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.1066, allocations: 75.61 kB / 361.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.1068, allocations: 135.1 kB / 361.8 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004784/0.1072, allocations: 390.9 kB / 362.2 MB, free: 9.102 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1073, allocations: 3.938 kB / 362.2 MB, free: 9.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1073, allocations: 3.938 kB / 362.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.1073, allocations: 4 kB / 362.2 MB, free: 9.09 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.001381/0.1087, allocations: 0.6352 MB / 362.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1087, allocations: 16.03 kB / 362.9 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.1088, allocations: 40.45 kB / 362.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004643/0.1093, allocations: 323.9 kB / 363.2 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.1093, allocations: 16.94 kB / 363.2 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.983e-05/0.1094, allocations: 28.38 kB / 363.3 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.1109, allocations: 0.7403 MB / 364 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.1109, allocations: 4 kB / 364 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.018e-05/0.111, allocations: 8 kB / 364 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.111, allocations: 8 kB / 364 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005681/0.1116, allocations: 223.7 kB / 364.2 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008993/0.1125, allocations: 0.7721 MB / 365 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.1136, allocations: 0.6277 MB / 365.6 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004881/0.1141, allocations: 267.4 kB / 365.9 MB, free: 5.113 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000702/0.1148, allocations: 0.5856 MB / 366.5 MB, free: 4.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/0.1149, allocations: 50.28 kB / 366.5 MB, free: 4.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 1.924e-06/0.1149, allocations: 0 / 366.5 MB, free: 4.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.001288/0.1162, allocations: 0.5322 MB / 367.1 MB, free: 3.801 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/0.1163, allocations: 203.9 kB / 367.3 MB, free: 3.559 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.1166, allocations: 250.6 kB / 367.5 MB, free: 3.305 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.1166, allocations: 33.7 kB / 367.5 MB, free: 3.266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.1168, allocations: 156.7 kB / 367.7 MB, free: 3.109 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.265e-05/0.1168, allocations: 43.59 kB / 367.7 MB, free: 3.066 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.673e-05/0.1169, allocations: 86.28 kB / 367.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.1171, allocations: 346.8 kB / 368.2 MB, free: 2.629 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000192/0.1173, allocations: 85.06 kB / 368.2 MB, free: 2.543 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004468/0.1178, allocations: 434.9 kB / 368.7 MB, free: 1.953 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006337/0.1184, allocations: 0.5242 MB / 369.2 MB, free: 1.266 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.1184, allocations: 8 kB / 369.2 MB, free: 1.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008502/0.1193, allocations: 0.4932 MB / 369.7 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.1193, allocations: 11.23 kB / 369.7 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.1193, allocations: 15.94 kB / 369.7 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.485e-05/0.1194, allocations: 16 kB / 369.7 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000322/0.1197, allocations: 123.8 kB / 369.9 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.083e-05/0.1197, allocations: 23.92 kB / 369.9 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.12, allocations: 52.14 kB / 369.9 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.043e-05/0.12, allocations: 32 kB / 370 MB, free: 0.4922 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.0001861/0.1202, allocations: 196.8 kB / 370.2 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1641/0.2843, allocations: 341.2 kB / 370.5 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009157/0.2853, allocations: 358.6 kB / 370.8 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.2853, allocations: 6.938 kB / 370.8 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.2853, allocations: 2.031 kB / 370.8 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.2854, allocations: 5.141 kB / 370.8 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000552/0.2859, allocations: 335.5 kB / 371.2 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.2859, allocations: 2.734 kB / 371.2 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004443/0.2864, allocations: 100.9 kB / 371.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/0.2864, allocations: 7.922 kB / 371.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.006e-05/0.2864, allocations: 11.72 kB / 371.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.033e-06/0.2865, allocations: 5.969 kB / 371.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.2865, allocations: 1.938 kB / 371.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.2878, allocations: 0.7704 MB / 372.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.825e-05/0.2879, allocations: 124 kB / 372.2 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.97e-05/0.2879, allocations: 15.25 kB / 372.2 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002596/0.2882, allocations: 28.05 kB / 372.2 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.571e-05/0.2883, allocations: 11.98 kB / 372.2 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.009e-05/0.2883, allocations: 11.8 kB / 372.3 MB, free: 19.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002027/0.2885, allocations: 183.7 kB / 372.4 MB, free: 19.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2885, allocations: 0 / 372.4 MB, free: 19.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005829/0.2891, allocations: 74.64 kB / 372.5 MB, free: 19.73 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.0001902/0.2893, allocations: 129.5 kB / 372.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007512/0.2901, allocations: 359.8 kB / 373 MB, free: 19.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2901, allocations: 3.938 kB / 373 MB, free: 19.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.2902, allocations: 31.86 kB / 373 MB, free: 19.6 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.2913, allocations: 308.8 kB / 373.3 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.2928, allocations: 0.8716 MB / 374.2 MB, free: 18.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.2931, allocations: 0.8102 MB / 375 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001217/0.2932, allocations: 37.59 kB / 375 MB, free: 18.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.046e-05/0.2933, allocations: 34.7 kB / 375.1 MB, free: 18.19 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2933, allocations: 1.375 kB / 375.1 MB, free: 18.19 MB / 302.1 MB Notification: Performance of Templates: time 0.01241/0.3057, allocations: 4.26 MB / 379.3 MB, free: 17.93 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches