Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,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.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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001735/0.001735, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.37/1.37, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 51.7 kB / 299.9 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1031, allocations: 49.45 MB / 349.4 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003649/0.1068, allocations: 2.05 MB / 351.4 MB, free: 2.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000799/0.1076, allocations: 0.522 MB / 352 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.1077, allocations: 4 kB / 352 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.1078, allocations: 11.86 kB / 352 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000141/0.108, allocations: 27.84 kB / 352 MB, free: 2 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002524/0.1083, allocations: 55.83 kB / 352.1 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001551/0.1084, allocations: 115.6 kB / 352.2 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001533/0.1086, allocations: 53.08 kB / 352.2 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.024e-05/0.1087, allocations: 43.8 kB / 352.3 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.743e-05/0.1088, allocations: 51.77 kB / 352.3 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.521e-05/0.1088, allocations: 8 kB / 352.3 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.262e-05/0.1088, allocations: 8 kB / 352.3 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.343e-05/0.1089, allocations: 27.91 kB / 352.4 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.811e-05/0.1089, allocations: 59.67 kB / 352.4 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.1091, allocations: 119.7 kB / 352.5 MB, free: 1.469 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.1091, allocations: 7.984 kB / 352.5 MB, free: 1.461 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1091, allocations: 0 / 352.5 MB, free: 1.461 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.1091, allocations: 0 / 352.5 MB, free: 1.461 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006721/0.1098, allocations: 423.1 kB / 353 MB, free: 1 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.1099, allocations: 8.031 kB / 353 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.886e-05/0.1099, allocations: 16.84 kB / 353 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002469/0.1102, allocations: 216 kB / 353.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.1102, allocations: 16.36 kB / 353.2 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.788e-05/0.1103, allocations: 12.38 kB / 353.2 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005298/0.1108, allocations: 242.9 kB / 353.5 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.1108, allocations: 7.984 kB / 353.5 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.1108, allocations: 0 / 353.5 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.1109, allocations: 4 kB / 353.5 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002648/0.1111, allocations: 87.88 kB / 353.6 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007255/0.1119, allocations: 0.5843 MB / 354.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004094/0.1123, allocations: 147.7 kB / 354.3 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.1125, allocations: 82.69 kB / 354.4 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.699e-05/0.1125, allocations: 7.984 kB / 354.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.1126, allocations: 38.56 kB / 354.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.813e-06/0.1126, allocations: 0 / 354.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005951/0.1132, allocations: 193.2 kB / 354.6 MB, free: 15.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.431e-05/0.1133, allocations: 114.8 kB / 354.7 MB, free: 15.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.1134, allocations: 129.5 kB / 354.8 MB, free: 14.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.1134, allocations: 33.83 kB / 354.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.628e-05/0.1135, allocations: 111.8 kB / 355 MB, free: 14.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.1136, allocations: 23.7 kB / 355 MB, free: 14.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.41e-05/0.1136, allocations: 37.7 kB / 355 MB, free: 14.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1138, allocations: 322.8 kB / 355.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001254/0.1139, allocations: 39.91 kB / 355.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001592/0.1141, allocations: 132.5 kB / 355.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000275/0.1144, allocations: 193.5 kB / 355.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.1144, allocations: 4 kB / 355.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003365/0.1147, allocations: 201 kB / 355.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.1148, allocations: 4 kB / 355.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.1148, allocations: 4.469 kB / 355.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.1148, allocations: 8 kB / 355.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.1149, allocations: 51.91 kB / 356 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.238e-06/0.115, allocations: 4 kB / 356 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.1151, allocations: 23.83 kB / 356 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.1151, allocations: 12 kB / 356 MB, free: 13.59 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 9.93e-05/0.1152, allocations: 142.1 kB / 356.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.1153, allocations: 85.91 kB / 356.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.1154, allocations: 20.72 kB / 356.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1155, allocations: 3.984 kB / 356.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.1155, allocations: 4.094 kB / 356.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1155, allocations: 3.938 kB / 356.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002417/0.1157, allocations: 205.5 kB / 356.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1157, allocations: 0 / 356.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.1159, allocations: 35.92 kB / 356.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1159, allocations: 0 / 356.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.1159, allocations: 11.98 kB / 356.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1159, allocations: 0 / 356.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.116, allocations: 4 kB / 356.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005189/0.1165, allocations: 375.4 kB / 356.9 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.904e-05/0.1165, allocations: 88.98 kB / 357 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.676e-05/0.1166, allocations: 7.984 kB / 357 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.1167, allocations: 12.06 kB / 357 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.218e-05/0.1168, allocations: 11.86 kB / 357 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.1168, allocations: 4 kB / 357 MB, free: 12.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.777e-05/0.1168, allocations: 99.27 kB / 357.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1168, allocations: 4 kB / 357.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000308/0.1172, allocations: 27.91 kB / 357.1 MB, free: 12.36 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.0001049/0.1173, allocations: 95.25 kB / 357.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003362/0.1176, allocations: 130.5 kB / 357.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1176, allocations: 0 / 357.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.587e-05/0.1177, allocations: 28.86 kB / 357.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004774/0.1182, allocations: 59.98 kB / 357.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006982/0.1189, allocations: 447.9 kB / 357.9 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/0.1192, allocations: 0.7126 MB / 358.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.968e-05/0.1193, allocations: 13.08 kB / 358.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.797e-05/0.1193, allocations: 19.38 kB / 358.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1193, allocations: 0 / 358.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of Templates: time 0.003519/0.1228, allocations: 1.07 MB / 359.7 MB, free: 9.75 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches