Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009699/0.00097, allocations: 95.72 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.001018/0.001018, allocations: 203.8 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.7 MB / 247.5 MB, free: 11.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002345/0.0002344, allocations: 8 kB / 308.4 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09302/0.09328, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002395/0.09572, allocations: 1.704 MB / 361.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.0968, allocations: 0.5572 MB / 362.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.09695, allocations: 3.938 kB / 362.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000104/0.09707, allocations: 11.92 kB / 362.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.09722, allocations: 19.8 kB / 362.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000247/0.09747, allocations: 47.95 kB / 362.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001602/0.09765, allocations: 123.6 kB / 362.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.0978, allocations: 57.02 kB / 362.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.542e-05/0.09788, allocations: 39.73 kB / 362.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.927e-05/0.09796, allocations: 43.77 kB / 362.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.181e-05/0.09799, allocations: 12 kB / 362.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.626e-05/0.09802, allocations: 4 kB / 362.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.854e-05/0.09805, allocations: 23.86 kB / 362.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.698e-05/0.09812, allocations: 77.38 kB / 362.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001126/0.09824, allocations: 84.03 kB / 362.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.09826, allocations: 0 / 362.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.09826, allocations: 3.938 kB / 362.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.09827, allocations: 0 / 362.7 MB, free: 10.47 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005449/0.09882, allocations: 407.2 kB / 363.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.09887, allocations: 12.03 kB / 363.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.651e-05/0.09892, allocations: 12.75 kB / 363.1 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.09914, allocations: 219.7 kB / 363.3 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.09916, allocations: 8.375 kB / 363.4 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.492e-05/0.0992, allocations: 12.38 kB / 363.4 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004962/0.0997, allocations: 250.9 kB / 363.6 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.09973, allocations: 7.891 kB / 363.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.09975, allocations: 8 kB / 363.6 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.09977, allocations: 4 kB / 363.6 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002625/0.1, allocations: 95.88 kB / 363.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006165/0.1007, allocations: 0.592 MB / 364.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003454/0.101, allocations: 151.9 kB / 364.5 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001747/0.1012, allocations: 90.62 kB / 364.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.1012, allocations: 3.984 kB / 364.6 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.1013, allocations: 38.56 kB / 364.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.1013, allocations: 0 / 364.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005318/0.1018, allocations: 201.4 kB / 364.8 MB, free: 8.156 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.845e-05/0.1019, allocations: 114.8 kB / 364.9 MB, free: 8.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.931e-05/0.102, allocations: 132.9 kB / 365 MB, free: 7.879 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.102, allocations: 25.7 kB / 365.1 MB, free: 7.848 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.547e-05/0.1021, allocations: 115.7 kB / 365.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.842e-05/0.1021, allocations: 27.7 kB / 365.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.442e-05/0.1022, allocations: 22.08 kB / 365.2 MB, free: 7.676 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.1023, allocations: 326.9 kB / 365.5 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.1024, allocations: 39.97 kB / 365.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.1026, allocations: 139.4 kB / 365.7 MB, free: 7.125 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003197/0.1029, allocations: 209.4 kB / 365.9 MB, free: 6.871 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.1029, allocations: 4 kB / 365.9 MB, free: 6.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003968/0.1033, allocations: 205.5 kB / 366.1 MB, free: 6.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.1034, allocations: 8 kB / 366.1 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.1034, allocations: 4.047 kB / 366.1 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.1034, allocations: 11.92 kB / 366.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.1036, allocations: 47.91 kB / 366.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.1036, allocations: 7.938 kB / 366.2 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.1037, allocations: 32.14 kB / 366.2 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.1037, allocations: 8 kB / 366.2 MB, free: 6.543 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001026/0.1038, allocations: 133.7 kB / 366.4 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.104, allocations: 89.53 kB / 366.5 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.807e-05/0.1041, allocations: 16.72 kB / 366.5 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1041, allocations: 0 / 366.5 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1041, allocations: 0 / 366.5 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.1041, allocations: 7.984 kB / 366.5 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002599/0.1044, allocations: 209.5 kB / 366.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1044, allocations: 0 / 366.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/0.1046, allocations: 39.92 kB / 366.7 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.1046, allocations: 0 / 366.7 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.1046, allocations: 4 kB / 366.7 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.1046, allocations: 7.984 kB / 366.7 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1046, allocations: 0 / 366.7 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005417/0.1052, allocations: 394.6 kB / 367.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.555e-05/0.1052, allocations: 101 kB / 367.2 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.254e-05/0.1053, allocations: 4 kB / 367.2 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.1054, allocations: 15.98 kB / 367.2 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.108e-05/0.1055, allocations: 3.984 kB / 367.2 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.1055, allocations: 4 kB / 367.3 MB, free: 5.434 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.48e-05/0.1056, allocations: 101.9 kB / 367.4 MB, free: 5.336 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1056, allocations: 0 / 367.4 MB, free: 5.336 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003246/0.1059, allocations: 24 kB / 367.4 MB, free: 5.312 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.0001026/0.106, allocations: 107.7 kB / 367.5 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003414/0.1063, allocations: 132.8 kB / 367.6 MB, free: 5.066 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1064, allocations: 3.938 kB / 367.6 MB, free: 5.062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.1065, allocations: 31.92 kB / 367.6 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004834/0.107, allocations: 55.89 kB / 367.7 MB, free: 4.977 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007578/0.1077, allocations: 0.515 MB / 368.2 MB, free: 4.422 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.108, allocations: 0.7126 MB / 368.9 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.485e-05/0.1081, allocations: 15.44 kB / 368.9 MB, free: 3.664 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1081, allocations: 0 / 368.9 MB, free: 3.664 MB / 302.1 MB Notification: Performance of Templates: time 0.003435/0.1115, allocations: 1.496 MB / 370.4 MB, free: 2.172 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches