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.002082/0.002082, allocations: 108.5 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.002378/0.002378, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 227.4 MB / 246.3 MB, free: 10.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002459/0.002459, allocations: 62.95 kB / 306.3 MB, free: 0.9961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1342, allocations: 50.55 MB / 356.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004786/0.139, allocations: 2.72 MB / 359.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.1409, allocations: 0.9428 MB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001933/0.1412, allocations: 7.938 kB / 360.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002392/0.1414, allocations: 47.59 kB / 360.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002344/0.1417, allocations: 47.69 kB / 360.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006955/0.1424, allocations: 215.5 kB / 360.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004181/0.1428, allocations: 354.9 kB / 361.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003373/0.1431, allocations: 176.8 kB / 361.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001515/0.1433, allocations: 123.4 kB / 361.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002037/0.1435, allocations: 143.2 kB / 361.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.851e-05/0.1436, allocations: 16 kB / 361.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.1437, allocations: 51.95 kB / 361.7 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.1438, allocations: 71.69 kB / 361.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001578/0.144, allocations: 147.1 kB / 361.9 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004324/0.1444, allocations: 374.9 kB / 362.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1445, allocations: 4 kB / 362.3 MB, free: 9.027 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.1445, allocations: 0 / 362.3 MB, free: 9.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1445, allocations: 0 / 362.3 MB, free: 9.027 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.001183/0.1457, allocations: 0.6468 MB / 362.9 MB, free: 8.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.1457, allocations: 12.03 kB / 362.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.156e-05/0.1458, allocations: 40.47 kB / 362.9 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004874/0.1463, allocations: 319.9 kB / 363.3 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.15e-05/0.1464, allocations: 24.94 kB / 363.3 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.231e-05/0.1464, allocations: 28.36 kB / 363.3 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/0.1479, allocations: 0.7558 MB / 364.1 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.1479, allocations: 0 / 364.1 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.223e-05/0.148, allocations: 8 kB / 364.1 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.749e-06/0.148, allocations: 8 kB / 364.1 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005768/0.1486, allocations: 215.8 kB / 364.3 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.1496, allocations: 0.7721 MB / 365.1 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.1508, allocations: 0.6199 MB / 365.7 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005022/0.1513, allocations: 267.3 kB / 365.9 MB, free: 5.043 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009906/0.1523, allocations: 0.5973 MB / 366.5 MB, free: 4.316 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.289e-05/0.1524, allocations: 42.34 kB / 366.6 MB, free: 4.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 3.617e-06/0.1524, allocations: 0 / 366.6 MB, free: 4.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.001347/0.1537, allocations: 0.5321 MB / 367.1 MB, free: 3.727 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001907/0.1539, allocations: 203.9 kB / 367.3 MB, free: 3.484 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003761/0.1543, allocations: 254.8 kB / 367.6 MB, free: 3.227 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.1544, allocations: 37.7 kB / 367.6 MB, free: 3.184 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.1545, allocations: 152.7 kB / 367.8 MB, free: 3.031 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.962e-05/0.1546, allocations: 43.59 kB / 367.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.1547, allocations: 86.25 kB / 367.9 MB, free: 2.898 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002196/0.155, allocations: 346.8 kB / 368.2 MB, free: 2.551 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002132/0.1552, allocations: 85 kB / 368.3 MB, free: 2.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005321/0.1557, allocations: 435 kB / 368.7 MB, free: 1.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000734/0.1565, allocations: 0.532 MB / 369.3 MB, free: 1.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.125e-05/0.1565, allocations: 4.109 kB / 369.3 MB, free: 1.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008553/0.1574, allocations: 0.4895 MB / 369.8 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.904e-05/0.1574, allocations: 12 kB / 369.8 MB, free: 0.668 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/0.1574, allocations: 12.16 kB / 369.8 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.748e-05/0.1575, allocations: 16 kB / 369.8 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003474/0.1578, allocations: 123.8 kB / 369.9 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.328e-05/0.1578, allocations: 19.94 kB / 369.9 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003/0.1582, allocations: 47.67 kB / 370 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.873e-05/0.1582, allocations: 32 kB / 370 MB, free: 432 kB / 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.0002821/0.1585, allocations: 200.9 kB / 370.2 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1972/0.3557, allocations: 346.1 kB / 370.5 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008745/0.3566, allocations: 356.8 kB / 370.9 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/0.3566, allocations: 6.828 kB / 370.9 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.3566, allocations: 1.781 kB / 370.9 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.3567, allocations: 6.109 kB / 370.9 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006028/0.3573, allocations: 340.4 kB / 371.2 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/0.3573, allocations: 1.734 kB / 371.2 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004361/0.3577, allocations: 103.3 kB / 371.3 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.734e-06/0.3577, allocations: 2.75 kB / 371.3 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.184e-05/0.3578, allocations: 13.38 kB / 371.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.223e-06/0.3578, allocations: 2.375 kB / 371.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3578, allocations: 4.828 kB / 371.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001373/0.3592, allocations: 0.7681 MB / 372.1 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.918e-05/0.3593, allocations: 123.6 kB / 372.3 MB, free: 19.74 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.016e-05/0.3593, allocations: 17.03 kB / 372.3 MB, free: 19.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.3596, allocations: 25.72 kB / 372.3 MB, free: 19.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.752e-05/0.3597, allocations: 5.156 kB / 372.3 MB, free: 19.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.949e-05/0.3597, allocations: 19.23 kB / 372.3 MB, free: 19.74 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002189/0.3599, allocations: 184.7 kB / 372.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3599, allocations: 0 / 372.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005731/0.3605, allocations: 71.72 kB / 372.6 MB, free: 19.66 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.0002129/0.3607, allocations: 132.7 kB / 372.7 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007959/0.3616, allocations: 363.3 kB / 373.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3616, allocations: 0 / 373.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001106/0.3617, allocations: 31.97 kB / 373.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.3628, allocations: 305.4 kB / 373.4 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.3643, allocations: 0.8706 MB / 374.3 MB, free: 18.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.3646, allocations: 0.8094 MB / 375.1 MB, free: 18.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000145/0.3648, allocations: 38.31 kB / 375.1 MB, free: 18.13 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.314e-05/0.3649, allocations: 36.3 kB / 375.1 MB, free: 18.12 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3649, allocations: 3.938 kB / 375.1 MB, free: 18.11 MB / 302.1 MB Notification: Performance of Templates: time 0.01055/0.3754, allocations: 4.262 MB / 379.4 MB, free: 17.85 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.1.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