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.0009389/0.0009392, allocations: 95.8 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001197/0.001197, allocations: 207.7 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.7 MB / 247.5 MB, free: 9.637 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002305/0.0002305, allocations: 4 kB / 308.4 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09448/0.09473, allocations: 51.52 MB / 359.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.002964/0.09774, allocations: 2.35 MB / 362.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001688/0.09946, allocations: 0.9233 MB / 363.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002532/0.09973, allocations: 11.94 kB / 363.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001995/0.09994, allocations: 39.59 kB / 363.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00027/0.1002, allocations: 51.62 kB / 363.3 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006654/0.1009, allocations: 211 kB / 363.5 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000433/0.1013, allocations: 354.9 kB / 363.8 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003086/0.1017, allocations: 180.8 kB / 364 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001487/0.1018, allocations: 99.39 kB / 364.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.102, allocations: 119.2 kB / 364.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.924e-05/0.1021, allocations: 8 kB / 364.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001101/0.1022, allocations: 43.95 kB / 364.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.969e-05/0.1023, allocations: 55.7 kB / 364.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.1024, allocations: 152.8 kB / 364.5 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002829/0.1027, allocations: 291.5 kB / 364.8 MB, free: 8.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1027, allocations: 3.984 kB / 364.8 MB, free: 8.195 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1027, allocations: 4 kB / 364.8 MB, free: 8.191 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.305e-06/0.1027, allocations: 0 / 364.8 MB, free: 8.191 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.001005/0.1038, allocations: 0.5886 MB / 365.4 MB, free: 7.555 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.1038, allocations: 8.031 kB / 365.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.685e-05/0.1039, allocations: 48.45 kB / 365.4 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003874/0.1043, allocations: 323.9 kB / 365.7 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.763e-05/0.1043, allocations: 20.94 kB / 365.7 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.001e-05/0.1044, allocations: 28.38 kB / 365.8 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.1058, allocations: 0.783 MB / 366.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.1058, allocations: 0 / 366.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.261e-05/0.1059, allocations: 12 kB / 366.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.1059, allocations: 4 kB / 366.6 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005905/0.1065, allocations: 255.8 kB / 366.8 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008383/0.1073, allocations: 0.7682 MB / 367.6 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.1084, allocations: 0.6543 MB / 368.2 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004777/0.1089, allocations: 279.4 kB / 368.5 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006004/0.1095, allocations: 0.5895 MB / 369.1 MB, free: 3.434 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.1096, allocations: 50.33 kB / 369.2 MB, free: 3.375 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.424e-06/0.1096, allocations: 0 / 369.2 MB, free: 3.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.001235/0.1108, allocations: 0.5642 MB / 369.7 MB, free: 2.805 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.111, allocations: 211.9 kB / 369.9 MB, free: 2.555 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002493/0.1112, allocations: 254.6 kB / 370.2 MB, free: 2.297 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.194e-05/0.1113, allocations: 33.7 kB / 370.2 MB, free: 2.258 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.1114, allocations: 156.7 kB / 370.4 MB, free: 2.102 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.417e-05/0.1114, allocations: 59.64 kB / 370.4 MB, free: 2.043 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.158e-05/0.1115, allocations: 45.7 kB / 370.5 MB, free: 1.992 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.1116, allocations: 346.8 kB / 370.8 MB, free: 1.645 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.1118, allocations: 89.06 kB / 370.9 MB, free: 1.559 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004492/0.1123, allocations: 435 kB / 371.3 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007057/0.113, allocations: 0.5398 MB / 371.9 MB, free: 272 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.113, allocations: 0 / 371.9 MB, free: 272 kB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.204/0.3171, allocations: 0.4936 MB / 372.3 MB, free: 18.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.419e-05/0.3172, allocations: 9.906 kB / 372.4 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.669e-05/0.3172, allocations: 12 kB / 372.4 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.015e-05/0.3172, allocations: 15.98 kB / 372.4 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003823/0.3176, allocations: 123.4 kB / 372.5 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.457e-05/0.3177, allocations: 25.81 kB / 372.5 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003296/0.318, allocations: 61.48 kB / 372.6 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.31e-05/0.3181, allocations: 30.28 kB / 372.6 MB, free: 18.79 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.0002957/0.3184, allocations: 196.5 kB / 372.8 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000803/0.3192, allocations: 362.7 kB / 373.2 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008351/0.32, allocations: 369.6 kB / 373.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.32, allocations: 6.062 kB / 373.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.3201, allocations: 1.406 kB / 373.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.3201, allocations: 3.812 kB / 373.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004686/0.3205, allocations: 344.4 kB / 373.9 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.3206, allocations: 7.25 kB / 373.9 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004381/0.321, allocations: 111.7 kB / 374 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.321, allocations: 2.031 kB / 374 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.771e-05/0.3211, allocations: 9.812 kB / 374 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.662e-06/0.3211, allocations: 2.953 kB / 374 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3211, allocations: 5.656 kB / 374 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.3226, allocations: 0.8192 MB / 374.8 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.528e-05/0.3227, allocations: 117 kB / 374.9 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.335e-05/0.3227, allocations: 14.61 kB / 375 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000287/0.323, allocations: 35.75 kB / 375 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.435e-05/0.3231, allocations: 6.094 kB / 375 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.625e-05/0.3232, allocations: 18.22 kB / 375 MB, free: 18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003233/0.3235, allocations: 183.8 kB / 375.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3235, allocations: 3.094 kB / 375.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007055/0.3242, allocations: 75.59 kB / 375.3 MB, free: 17.92 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.0002619/0.3245, allocations: 129.2 kB / 375.4 MB, free: 17.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.3256, allocations: 373.4 kB / 375.8 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.3257, allocations: 2.781 kB / 375.8 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.3258, allocations: 40.89 kB / 375.8 MB, free: 17.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.327, allocations: 305.4 kB / 376.1 MB, free: 17.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.3285, allocations: 0.9533 MB / 377.1 MB, free: 17.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.3288, allocations: 0.8092 MB / 377.9 MB, free: 16.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.837e-05/0.3289, allocations: 35.56 kB / 377.9 MB, free: 16.46 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3289, allocations: 0 / 377.9 MB, free: 16.46 MB / 302.1 MB Notification: Performance of Templates: time 0.01/0.3389, allocations: 4.414 MB / 382.3 MB, free: 16.11 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/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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches