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.001233/0.001232, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.00119, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 63.58 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1106, allocations: 50.54 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003359/0.114, allocations: 2.012 MB / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.1152, allocations: 0.561 MB / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.1153, allocations: 4 kB / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.1154, allocations: 15.8 kB / 361.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001524/0.1156, allocations: 35.7 kB / 361.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002492/0.1159, allocations: 59.88 kB / 361.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001778/0.1161, allocations: 119.6 kB / 361.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001616/0.1162, allocations: 57.31 kB / 361.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.514e-05/0.1163, allocations: 63.7 kB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.323e-05/0.1164, allocations: 47.78 kB / 361.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.656e-05/0.1165, allocations: 8 kB / 361.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.089e-05/0.1165, allocations: 12 kB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.826e-05/0.1165, allocations: 31.84 kB / 361.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.125e-05/0.1166, allocations: 59.72 kB / 362 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002239/0.1168, allocations: 135.4 kB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1169, allocations: 0 / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1169, allocations: 0 / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.1169, allocations: 0 / 362.1 MB, free: 10.12 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.0006401/0.1175, allocations: 431 kB / 362.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.1176, allocations: 12.03 kB / 362.5 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.489e-05/0.1176, allocations: 8.844 kB / 362.5 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.118, allocations: 215.6 kB / 362.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.118, allocations: 8.375 kB / 362.8 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.33e-05/0.118, allocations: 12.38 kB / 362.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004822/0.1185, allocations: 254.9 kB / 363 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.1185, allocations: 0 / 363 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.1186, allocations: 8 kB / 363 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.1186, allocations: 0 / 363 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002472/0.1188, allocations: 87.88 kB / 363.1 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006705/0.1195, allocations: 0.592 MB / 363.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003342/0.1198, allocations: 147.7 kB / 363.8 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.12, allocations: 90.75 kB / 363.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.12, allocations: 0 / 363.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.1201, allocations: 42.55 kB / 364 MB, free: 8.012 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/0.1201, allocations: 0 / 364 MB, free: 8.012 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005045/0.1206, allocations: 185.3 kB / 364.2 MB, free: 7.824 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.65e-05/0.1207, allocations: 111.2 kB / 364.3 MB, free: 7.691 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.1208, allocations: 130.2 kB / 364.4 MB, free: 7.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.1208, allocations: 29.64 kB / 364.4 MB, free: 7.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/0.1209, allocations: 115.7 kB / 364.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.1209, allocations: 27.78 kB / 364.6 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-05/0.121, allocations: 29.72 kB / 364.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1211, allocations: 331 kB / 364.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.1212, allocations: 39.91 kB / 365 MB, free: 6.965 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.1214, allocations: 137.3 kB / 365.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/0.1217, allocations: 185.5 kB / 365.3 MB, free: 6.555 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1217, allocations: 7.875 kB / 365.3 MB, free: 6.547 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003477/0.1221, allocations: 201 kB / 365.5 MB, free: 6.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.1221, allocations: 8 kB / 365.5 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/0.1221, allocations: 0 / 365.5 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.1221, allocations: 8 kB / 365.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.1223, allocations: 43.92 kB / 365.5 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.1223, allocations: 11.98 kB / 365.5 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.1224, allocations: 24.31 kB / 365.6 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.1224, allocations: 12 kB / 365.6 MB, free: 6.238 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.0001188/0.1226, allocations: 133.7 kB / 365.7 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001637/0.1227, allocations: 89.52 kB / 365.8 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.954e-05/0.1228, allocations: 16.72 kB / 365.8 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.1228, allocations: 4 kB / 365.8 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1228, allocations: 0 / 365.8 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.1229, allocations: 0 / 365.8 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002845/0.1231, allocations: 205.5 kB / 366 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1232, allocations: 4 kB / 366 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002301/0.1234, allocations: 43.91 kB / 366.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.1234, allocations: 4 kB / 366.1 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.1234, allocations: 0 / 366.1 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1234, allocations: 4 kB / 366.1 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1234, allocations: 0 / 366.1 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005558/0.124, allocations: 379.4 kB / 366.4 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.358e-05/0.1241, allocations: 88.98 kB / 366.5 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.651e-05/0.1241, allocations: 8 kB / 366.5 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.1243, allocations: 11.92 kB / 366.6 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.108e-05/0.1243, allocations: 4.328 kB / 366.6 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.1243, allocations: 11.94 kB / 366.6 MB, free: 5.148 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.017e-05/0.1244, allocations: 102 kB / 366.7 MB, free: 5.051 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1244, allocations: 0 / 366.7 MB, free: 5.051 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003261/0.1247, allocations: 31.89 kB / 366.7 MB, free: 5.02 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.0001232/0.1249, allocations: 103.2 kB / 366.8 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00034/0.1252, allocations: 128.6 kB / 366.9 MB, free: 4.781 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1252, allocations: 0 / 366.9 MB, free: 4.781 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.139e-05/0.1253, allocations: 31.91 kB / 367 MB, free: 4.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004811/0.1258, allocations: 51.95 kB / 367 MB, free: 4.699 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007384/0.1266, allocations: 401.8 kB / 367.4 MB, free: 4.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.1269, allocations: 0.7084 MB / 368.1 MB, free: 3.531 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.004e-05/0.1269, allocations: 17.08 kB / 368.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.805e-05/0.127, allocations: 11.44 kB / 368.1 MB, free: 3.504 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.127, allocations: 0 / 368.1 MB, free: 3.504 MB / 302.1 MB Notification: Performance of Templates: time 0.004414/0.1314, allocations: 1.202 MB / 369.3 MB, free: 2.32 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 -s cvode -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