Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 103.6 kB / 16.51 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 222.9 MB / 241.1 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 42.67 kB / 299.9 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1093, allocations: 49.46 MB / 349.4 MB, free: 4.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003262/0.1126, allocations: 2.038 MB / 351.4 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007766/0.1134, allocations: 0.4948 MB / 351.9 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.1135, allocations: 4 kB / 351.9 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.1136, allocations: 11.92 kB / 352 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.263e-05/0.1137, allocations: 23.8 kB / 352 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.114, allocations: 47.89 kB / 352 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001589/0.1142, allocations: 119.6 kB / 352.1 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.1143, allocations: 49.09 kB / 352.2 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.104e-05/0.1144, allocations: 43.78 kB / 352.2 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.452e-05/0.1145, allocations: 55.7 kB / 352.3 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.336e-05/0.1145, allocations: 8 kB / 352.3 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.14e-05/0.1145, allocations: 4 kB / 352.3 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.695e-05/0.1146, allocations: 23.92 kB / 352.3 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.764e-05/0.1147, allocations: 59.67 kB / 352.4 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001369/0.1148, allocations: 107.9 kB / 352.5 MB, free: 1.508 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1148, allocations: 0 / 352.5 MB, free: 1.508 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1148, allocations: 0 / 352.5 MB, free: 1.508 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.1148, allocations: 7.938 kB / 352.5 MB, free: 1.5 MB / 286.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.0005737/0.1154, allocations: 427 kB / 352.9 MB, free: 1.035 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.1155, allocations: 12.03 kB / 352.9 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.199e-05/0.1155, allocations: 12.78 kB / 352.9 MB, free: 1.012 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001916/0.1157, allocations: 214.4 kB / 353.1 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.1157, allocations: 12.38 kB / 353.2 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.336e-05/0.1158, allocations: 16.28 kB / 353.2 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004838/0.1163, allocations: 250.8 kB / 353.4 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1163, allocations: 0 / 353.4 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.1163, allocations: 8 kB / 353.4 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.1163, allocations: 4 kB / 353.4 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002533/0.1166, allocations: 79.88 kB / 353.5 MB, free: 388 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006185/0.1172, allocations: 0.5921 MB / 354.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000267/0.1175, allocations: 147.9 kB / 354.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.1177, allocations: 74.64 kB / 354.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.505e-05/0.1177, allocations: 3.984 kB / 354.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.1177, allocations: 38.5 kB / 354.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.1177, allocations: 0 / 354.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005117/0.1182, allocations: 185.3 kB / 354.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.37e-05/0.1183, allocations: 114.8 kB / 354.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.931e-05/0.1184, allocations: 126.1 kB / 354.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.1185, allocations: 29.7 kB / 354.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.68e-05/0.1185, allocations: 108 kB / 354.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.113e-05/0.1186, allocations: 23.78 kB / 354.9 MB, free: 14.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.71e-05/0.1186, allocations: 37.7 kB / 355 MB, free: 14.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1188, allocations: 326.8 kB / 355.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.1189, allocations: 32.34 kB / 355.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.1191, allocations: 128.9 kB / 355.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000275/0.1193, allocations: 188.6 kB / 355.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1193, allocations: 0 / 355.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003391/0.1197, allocations: 193.1 kB / 355.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.1197, allocations: 8 kB / 355.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.1197, allocations: 4 kB / 355.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.1198, allocations: 7.938 kB / 355.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.1199, allocations: 43.91 kB / 355.9 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.12, allocations: 7.938 kB / 355.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.1201, allocations: 16.34 kB / 355.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.1201, allocations: 15.98 kB / 355.9 MB, free: 13.68 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 9.773e-05/0.1202, allocations: 133.7 kB / 356 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.1203, allocations: 89.44 kB / 356.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.529e-05/0.1204, allocations: 20.66 kB / 356.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.1204, allocations: 240 / 356.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.1204, allocations: 4 kB / 356.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1204, allocations: 3.984 kB / 356.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002431/0.1207, allocations: 197.6 kB / 356.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1207, allocations: 4 kB / 356.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.1209, allocations: 35.97 kB / 356.4 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1209, allocations: 0 / 356.4 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.1209, allocations: 7.938 kB / 356.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.1209, allocations: 8 kB / 356.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1209, allocations: 3.938 kB / 356.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005015/0.1214, allocations: 367.5 kB / 356.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.45e-05/0.1215, allocations: 92.94 kB / 356.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.1215, allocations: 3.938 kB / 356.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.1216, allocations: 8 kB / 356.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.655e-05/0.1217, allocations: 7.984 kB / 356.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.1217, allocations: 4 kB / 356.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.937e-05/0.1218, allocations: 106.6 kB / 357 MB, free: 12.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1218, allocations: 0 / 357 MB, free: 12.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003165/0.1221, allocations: 24 kB / 357 MB, free: 12.48 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 9.559e-05/0.1222, allocations: 107.2 kB / 357.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003122/0.1225, allocations: 116.5 kB / 357.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1225, allocations: 4.062 kB / 357.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.1226, allocations: 28.08 kB / 357.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005293/0.1232, allocations: 63.27 kB / 357.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007035/0.1239, allocations: 435.6 kB / 357.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.1242, allocations: 0.7126 MB / 358.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.656e-05/0.1243, allocations: 12.64 kB / 358.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.836e-05/0.1243, allocations: 15.44 kB / 358.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1243, allocations: 0 / 358.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of Templates: time 0.00381/0.1281, allocations: 1.045 MB / 359.5 MB, free: 9.93 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches