Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007787/0.0007788, allocations: 98.11 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008367/0.0008367, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.7 MB / 246.4 MB, free: 9.777 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002311/0.0002311, allocations: 8 kB / 307.1 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1191, allocations: 51.52 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002036/0.1211, allocations: 1.696 MB / 360.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009369/0.1221, allocations: 0.5809 MB / 360.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.1222, allocations: 3.938 kB / 360.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.163e-05/0.1223, allocations: 11.92 kB / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000158/0.1225, allocations: 31.77 kB / 360.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002699/0.1228, allocations: 63.77 kB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001575/0.1229, allocations: 119.6 kB / 361.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.1231, allocations: 45.38 kB / 361.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.008e-05/0.1232, allocations: 43.78 kB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.516e-05/0.1232, allocations: 47.78 kB / 361.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.234e-05/0.1233, allocations: 4 kB / 361.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.169e-05/0.1233, allocations: 4 kB / 361.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.524e-05/0.1234, allocations: 31.84 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.2e-05/0.1234, allocations: 45.64 kB / 361.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.1235, allocations: 100 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1235, allocations: 0 / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1236, allocations: 0 / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.1236, allocations: 0 / 361.4 MB, free: 10.59 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005579/0.1241, allocations: 438.7 kB / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.1242, allocations: 8.031 kB / 361.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.243e-05/0.1242, allocations: 23.7 kB / 361.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.1244, allocations: 204.1 kB / 362.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.1244, allocations: 15.94 kB / 362.1 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.054e-05/0.1245, allocations: 12 kB / 362.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005129/0.125, allocations: 265.1 kB / 362.4 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.125, allocations: 4 kB / 362.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.1251, allocations: 11.94 kB / 362.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.1251, allocations: 4 kB / 362.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002534/0.1253, allocations: 95.86 kB / 362.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006213/0.126, allocations: 0.5959 MB / 363.1 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000326/0.1263, allocations: 155.7 kB / 363.2 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.1265, allocations: 82.75 kB / 363.3 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.1265, allocations: 8 kB / 363.3 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/0.1265, allocations: 34.56 kB / 363.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.1265, allocations: 0 / 363.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004887/0.127, allocations: 205.3 kB / 363.6 MB, free: 8.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.105e-05/0.1271, allocations: 114.8 kB / 363.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.1272, allocations: 156.6 kB / 363.8 MB, free: 7.922 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.1273, allocations: 29.7 kB / 363.9 MB, free: 7.887 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.159e-05/0.1273, allocations: 112.5 kB / 364 MB, free: 7.773 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.686e-05/0.1274, allocations: 31.75 kB / 364 MB, free: 7.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-06/0.1274, allocations: 8 kB / 364 MB, free: 7.734 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1275, allocations: 322.8 kB / 364.3 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.1276, allocations: 40.34 kB / 364.4 MB, free: 7.371 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.1278, allocations: 138.4 kB / 364.5 MB, free: 7.188 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.1279, allocations: 71.91 kB / 364.6 MB, free: 7.117 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1279, allocations: 0 / 364.6 MB, free: 7.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003394/0.1283, allocations: 197.2 kB / 364.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1283, allocations: 8 kB / 364.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.1283, allocations: 8 kB / 364.8 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.1283, allocations: 7.984 kB / 364.8 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.1285, allocations: 43.92 kB / 364.8 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.1285, allocations: 8.391 kB / 364.8 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.1286, allocations: 36 kB / 364.9 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.1287, allocations: 8 kB / 364.9 MB, free: 6.801 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001272/0.1288, allocations: 134.4 kB / 365 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.1289, allocations: 89.44 kB / 365.1 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.387e-05/0.129, allocations: 24.7 kB / 365.1 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.129, allocations: 0 / 365.1 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1291, allocations: 0 / 365.1 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.1291, allocations: 16.41 kB / 365.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002505/0.1293, allocations: 209.5 kB / 365.3 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1293, allocations: 3.938 kB / 365.3 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001705/0.1295, allocations: 39.91 kB / 365.4 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.159e-06/0.1295, allocations: 4 kB / 365.4 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.1295, allocations: 7.938 kB / 365.4 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.1295, allocations: 4 kB / 365.4 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1296, allocations: 0 / 365.4 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004784/0.13, allocations: 403.2 kB / 365.8 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.107e-05/0.1301, allocations: 104.9 kB / 365.9 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/0.1301, allocations: 4 kB / 365.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.1303, allocations: 11.98 kB / 365.9 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.692e-05/0.1303, allocations: 4 kB / 365.9 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.1303, allocations: 4 kB / 365.9 MB, free: 5.656 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.261e-05/0.1304, allocations: 123.4 kB / 366 MB, free: 5.535 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1304, allocations: 0 / 366 MB, free: 5.535 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003115/0.1307, allocations: 35.95 kB / 366.1 MB, free: 5.5 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.639e-05/0.1308, allocations: 103.2 kB / 366.2 MB, free: 5.387 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002946/0.1311, allocations: 132.6 kB / 366.3 MB, free: 5.258 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1311, allocations: 0 / 366.3 MB, free: 5.258 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.271e-05/0.1312, allocations: 35.91 kB / 366.3 MB, free: 5.223 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004633/0.1317, allocations: 55.95 kB / 366.4 MB, free: 5.168 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006832/0.1324, allocations: 0.5089 MB / 366.9 MB, free: 4.625 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.1327, allocations: 0.7206 MB / 367.6 MB, free: 3.875 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.233e-05/0.1327, allocations: 17.42 kB / 367.6 MB, free: 3.859 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.687e-05/0.1328, allocations: 11.44 kB / 367.7 MB, free: 3.848 MB / 302.1 MB Notification: Performance of SimCode: time 1.693e-06/0.1328, allocations: 0 / 367.7 MB, free: 3.848 MB / 302.1 MB Notification: Performance of Templates: time 0.003415/0.1362, allocations: 1.149 MB / 368.8 MB, free: 2.738 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches