Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001763/0.001763, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002156/0.002156, allocations: 169.2 kB / 24.5 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.428/1.428, allocations: 177.2 MB / 204.9 MB, free: 9.043 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 54.03 kB / 325.5 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09162/0.09315, allocations: 53.35 MB / 378.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004073/0.09722, allocations: 1.971 MB / 380.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.0983, allocations: 0.5337 MB / 381.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.09843, allocations: 7.938 kB / 381.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001391/0.09857, allocations: 19.8 kB / 381.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001635/0.09873, allocations: 39.7 kB / 381.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.09898, allocations: 51.88 kB / 381.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002067/0.09919, allocations: 115.6 kB / 381.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.09936, allocations: 49.58 kB / 381.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.977e-05/0.09945, allocations: 51.73 kB / 381.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/0.09956, allocations: 47.77 kB / 381.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.831e-05/0.09958, allocations: 8 kB / 381.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.78e-05/0.09961, allocations: 12 kB / 381.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.896e-05/0.09965, allocations: 27.91 kB / 381.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.019e-05/0.09973, allocations: 51.73 kB / 381.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000226/0.09996, allocations: 131.3 kB / 382 MB, free: 12.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.09996, allocations: 4 kB / 382 MB, free: 12.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.967e-06/0.09996, allocations: 3.984 kB / 382 MB, free: 12.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.09997, allocations: 0 / 382 MB, free: 12.56 MB / 350.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.000687/0.1007, allocations: 349.8 kB / 382.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.1007, allocations: 8.031 kB / 382.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.557e-05/0.1008, allocations: 16.84 kB / 382.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002742/0.101, allocations: 154.3 kB / 382.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.036e-05/0.101, allocations: 12.38 kB / 382.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.882e-05/0.1011, allocations: 20.36 kB / 382.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005467/0.1016, allocations: 246 kB / 382.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.1016, allocations: 0 / 382.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.1017, allocations: 4 kB / 382.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.1017, allocations: 4 kB / 382.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002724/0.1019, allocations: 99.8 kB / 382.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006399/0.1026, allocations: 492.5 kB / 383.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003732/0.103, allocations: 139.9 kB / 383.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.1031, allocations: 66.64 kB / 383.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.313e-05/0.1032, allocations: 7.984 kB / 383.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.1032, allocations: 42.55 kB / 383.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.1032, allocations: 4 kB / 383.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005416/0.1037, allocations: 177.6 kB / 383.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.7e-05/0.1038, allocations: 119.1 kB / 383.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.1039, allocations: 129.9 kB / 384.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.104, allocations: 29.7 kB / 384.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.856e-05/0.1041, allocations: 120 kB / 384.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.414e-05/0.1041, allocations: 27.78 kB / 384.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.908e-05/0.1041, allocations: 37.83 kB / 384.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1043, allocations: 318.8 kB / 384.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.1044, allocations: 39.97 kB / 384.6 MB, free: 9.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.1046, allocations: 137.1 kB / 384.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003216/0.1049, allocations: 193.4 kB / 384.9 MB, free: 9.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1049, allocations: 0 / 384.9 MB, free: 9.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003934/0.1053, allocations: 201.1 kB / 385.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.1053, allocations: 8 kB / 385.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1053, allocations: 4.469 kB / 385.1 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.1054, allocations: 8 kB / 385.2 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.1055, allocations: 43.91 kB / 385.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.1055, allocations: 11.94 kB / 385.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.1056, allocations: 19.89 kB / 385.2 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.1057, allocations: 8 kB / 385.2 MB, free: 8.992 MB / 350.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.0001376/0.1058, allocations: 133.8 kB / 385.4 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.1059, allocations: 85.58 kB / 385.5 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.273e-05/0.106, allocations: 20.72 kB / 385.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.106, allocations: 8 kB / 385.5 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.106, allocations: 0 / 385.5 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.106, allocations: 3.984 kB / 385.5 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002216/0.1063, allocations: 133.2 kB / 385.6 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.1063, allocations: 4 kB / 385.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001734/0.1064, allocations: 35.92 kB / 385.7 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.1064, allocations: 7.938 kB / 385.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.1064, allocations: 0 / 385.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.706e-06/0.1065, allocations: 7.984 kB / 385.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1065, allocations: 0 / 385.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005999/0.1071, allocations: 379.4 kB / 386 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.212e-05/0.1071, allocations: 15.88 kB / 386.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.348e-05/0.1071, allocations: 8 kB / 386.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.1072, allocations: 11.98 kB / 386.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.902e-05/0.1073, allocations: 7.984 kB / 386.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.1073, allocations: 4.094 kB / 386.1 MB, free: 8.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.89e-05/0.1074, allocations: 99.2 kB / 386.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1074, allocations: 4 kB / 386.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003277/0.1077, allocations: 32 kB / 386.2 MB, free: 7.945 MB / 350.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.0001094/0.1078, allocations: 103.2 kB / 386.3 MB, free: 7.836 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003487/0.1082, allocations: 116.7 kB / 386.4 MB, free: 7.723 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1082, allocations: 0 / 386.4 MB, free: 7.723 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.1083, allocations: 31.98 kB / 386.5 MB, free: 7.691 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005002/0.1088, allocations: 55.92 kB / 386.5 MB, free: 7.637 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007583/0.1095, allocations: 394.5 kB / 386.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001218/0.1096, allocations: 101.7 kB / 387 MB, free: 7.102 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.02e-05/0.1097, allocations: 13.14 kB / 387 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.838e-05/0.1097, allocations: 20.5 kB / 387 MB, free: 7.066 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1097, allocations: 0 / 387 MB, free: 7.066 MB / 350.1 MB Notification: Performance of Templates: time 0.004597/0.1143, allocations: 1.284 MB / 388.3 MB, free: 5.812 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.20385130494833]