Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001679/0.001679, allocations: 107.4 kB / 17.98 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002046/0.002046, allocations: 213.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 247.1 MB, free: 10.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 64.05 kB / 307.1 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1195, allocations: 50.55 MB / 357.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003993/0.1235, allocations: 2.059 MB / 359.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.1246, allocations: 0.5299 MB / 360.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.1248, allocations: 7.938 kB / 360.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.1249, allocations: 7.922 kB / 360.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.15e-05/0.125, allocations: 19.84 kB / 360.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000316/0.1253, allocations: 55.88 kB / 360.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.1255, allocations: 119.6 kB / 360.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.1257, allocations: 57.39 kB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.629e-05/0.1258, allocations: 51.78 kB / 360.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.102e-05/0.1259, allocations: 55.77 kB / 360.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.1259, allocations: 12 kB / 360.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.362e-05/0.126, allocations: 12 kB / 360.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.647e-05/0.126, allocations: 23.92 kB / 360.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.504e-05/0.1261, allocations: 59.61 kB / 360.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000171/0.1263, allocations: 88.06 kB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1263, allocations: 4 kB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.468e-06/0.1263, allocations: 4 kB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1263, allocations: 0 / 360.8 MB, free: 11.2 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0008204/0.1271, allocations: 431 kB / 361.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.1272, allocations: 8.031 kB / 361.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.787e-05/0.1273, allocations: 12.84 kB / 361.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000317/0.1276, allocations: 208 kB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.1276, allocations: 8.375 kB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.36e-05/0.1277, allocations: 12.38 kB / 361.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005666/0.1282, allocations: 250.3 kB / 361.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.1283, allocations: 0 / 361.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.1283, allocations: 4 kB / 361.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1283, allocations: 4 kB / 361.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002541/0.1286, allocations: 83.88 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008125/0.1294, allocations: 0.5882 MB / 362.4 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003028/0.1297, allocations: 151.9 kB / 362.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.1299, allocations: 70.64 kB / 362.6 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.1299, allocations: 8 kB / 362.6 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.468e-05/0.13, allocations: 30.56 kB / 362.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.743e-06/0.13, allocations: 3.938 kB / 362.7 MB, free: 9.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005473/0.1306, allocations: 181.2 kB / 362.8 MB, free: 8.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.688e-05/0.1307, allocations: 122.9 kB / 363 MB, free: 8.793 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.1308, allocations: 128.2 kB / 363.1 MB, free: 8.656 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/0.1308, allocations: 29.7 kB / 363.1 MB, free: 8.621 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.595e-05/0.1309, allocations: 112 kB / 363.2 MB, free: 8.508 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.651e-05/0.1309, allocations: 23.66 kB / 363.3 MB, free: 8.484 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.278e-05/0.131, allocations: 37.7 kB / 363.3 MB, free: 8.441 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.1312, allocations: 318.8 kB / 363.6 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.1313, allocations: 39.97 kB / 363.6 MB, free: 8.082 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.1315, allocations: 123.3 kB / 363.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003114/0.1318, allocations: 192.6 kB / 364 MB, free: 7.684 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.1318, allocations: 4 kB / 364 MB, free: 7.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003764/0.1322, allocations: 185.8 kB / 364.1 MB, free: 7.492 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.1322, allocations: 8.031 kB / 364.1 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.1323, allocations: 7.984 kB / 364.2 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.1323, allocations: 7.938 kB / 364.2 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.1325, allocations: 43.97 kB / 364.2 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.629e-05/0.1325, allocations: 11.94 kB / 364.2 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.1326, allocations: 19.84 kB / 364.2 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.1326, allocations: 11.98 kB / 364.2 MB, free: 7.383 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.000121/0.1328, allocations: 129.7 kB / 364.4 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/0.1329, allocations: 85.53 kB / 364.5 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.968e-05/0.133, allocations: 24.59 kB / 364.5 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.133, allocations: 4 kB / 364.5 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.133, allocations: 480 / 364.5 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.133, allocations: 0 / 364.5 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002838/0.1333, allocations: 197.6 kB / 364.7 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1333, allocations: 0 / 364.7 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.1335, allocations: 35.97 kB / 364.7 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1335, allocations: 3.938 kB / 364.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.1335, allocations: 11.94 kB / 364.7 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1335, allocations: 4 kB / 364.7 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1335, allocations: 0 / 364.7 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005773/0.1341, allocations: 371.4 kB / 365.1 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.135e-05/0.1342, allocations: 93.03 kB / 365.2 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.57e-05/0.1342, allocations: 11.94 kB / 365.2 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.1344, allocations: 4 kB / 365.2 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.83e-05/0.1344, allocations: 7.984 kB / 365.2 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.1344, allocations: 8 kB / 365.2 MB, free: 6.309 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.125e-05/0.1345, allocations: 97.94 kB / 365.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1345, allocations: 0 / 365.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003173/0.1348, allocations: 24 kB / 365.3 MB, free: 6.191 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 (14): * Single equations (assignments): 14 * 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.0001403/0.135, allocations: 111.2 kB / 365.4 MB, free: 6.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003331/0.1353, allocations: 119.7 kB / 365.6 MB, free: 5.953 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1353, allocations: 0 / 365.6 MB, free: 5.953 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.626e-05/0.1354, allocations: 24.86 kB / 365.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005689/0.136, allocations: 60 kB / 365.6 MB, free: 5.871 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000806/0.1368, allocations: 467.4 kB / 366.1 MB, free: 5.371 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004273/0.1373, allocations: 0.7123 MB / 366.8 MB, free: 4.629 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.65e-05/0.1373, allocations: 15.44 kB / 366.8 MB, free: 4.613 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1373, allocations: 0 / 366.8 MB, free: 4.613 MB / 302.1 MB Notification: Performance of Templates: time 0.003742/0.1411, allocations: 1.49 MB / 368.3 MB, free: 3.133 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches