Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001473/0.001473, allocations: 73.33 kB / 21.24 MB, free: 0.5547 MB / 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.002029/0.002029, allocations: 158.5 kB / 24.5 MB, free: 3.715 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.42/1.42, allocations: 177.2 MB / 204.9 MB, free: 9.004 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.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001615, allocations: 55.02 kB / 325.5 MB, free: 264 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09296/0.09458, allocations: 53.34 MB / 378.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003478/0.09805, allocations: 1.979 MB / 380.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009854/0.09904, allocations: 0.5142 MB / 381.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.502e-05/0.09913, allocations: 4 kB / 381.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.09924, allocations: 15.8 kB / 381.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.582e-05/0.09931, allocations: 27.72 kB / 381.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002902/0.0996, allocations: 62.75 kB / 381.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001781/0.09978, allocations: 119.6 kB / 381.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.09992, allocations: 45.59 kB / 381.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.729e-05/0.1, allocations: 47.8 kB / 381.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.727e-05/0.1001, allocations: 47.75 kB / 381.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.671e-05/0.1001, allocations: 12 kB / 381.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.034e-05/0.1001, allocations: 8 kB / 381.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.377e-05/0.1002, allocations: 27.86 kB / 381.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.093e-05/0.1002, allocations: 47.73 kB / 381.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002089/0.1004, allocations: 139.2 kB / 382 MB, free: 12.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1005, allocations: 0 / 382 MB, free: 12.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1005, allocations: 4 kB / 382 MB, free: 12.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1005, allocations: 0 / 382 MB, free: 12.57 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005898/0.101, allocations: 349.8 kB / 382.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.1011, allocations: 8.031 kB / 382.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.855e-05/0.1011, allocations: 20.83 kB / 382.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002533/0.1014, allocations: 142.3 kB / 382.5 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.1014, allocations: 8.375 kB / 382.5 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.744e-05/0.1014, allocations: 20.33 kB / 382.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004867/0.1019, allocations: 246.9 kB / 382.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.1019, allocations: 0 / 382.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.65e-05/0.102, allocations: 8 kB / 382.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.102, allocations: 4 kB / 382.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002633/0.1022, allocations: 83.88 kB / 382.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005981/0.1028, allocations: 0.4966 MB / 383.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002854/0.1031, allocations: 139.9 kB / 383.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.1033, allocations: 66.64 kB / 383.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.1033, allocations: 3.984 kB / 383.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.623e-05/0.1033, allocations: 38.5 kB / 383.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.1033, allocations: 0 / 383.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005095/0.1038, allocations: 173.5 kB / 383.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.971e-05/0.1039, allocations: 122.7 kB / 383.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.1041, allocations: 129.2 kB / 384 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.1041, allocations: 29.7 kB / 384 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.294e-05/0.1041, allocations: 116.2 kB / 384.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.759e-05/0.1042, allocations: 27.78 kB / 384.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.503e-05/0.1042, allocations: 33.72 kB / 384.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1044, allocations: 323 kB / 384.5 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.1045, allocations: 43.91 kB / 384.6 MB, free: 9.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.1047, allocations: 128.8 kB / 384.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/0.105, allocations: 180.6 kB / 384.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.105, allocations: 0 / 384.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003722/0.1053, allocations: 185.3 kB / 385 MB, free: 9.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.1054, allocations: 8 kB / 385.1 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.1054, allocations: 4 kB / 385.1 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.1054, allocations: 4 kB / 385.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.1056, allocations: 48.28 kB / 385.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.1056, allocations: 8 kB / 385.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.1057, allocations: 27.88 kB / 385.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.1057, allocations: 8 kB / 385.2 MB, free: 9.051 MB / 350.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.0001295/0.1058, allocations: 129.8 kB / 385.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.106, allocations: 77.58 kB / 385.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.888e-05/0.106, allocations: 16.78 kB / 385.4 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.106, allocations: 11.88 kB / 385.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.106, allocations: 3.984 kB / 385.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.106, allocations: 0 / 385.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000227/0.1063, allocations: 141.2 kB / 385.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1063, allocations: 0 / 385.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001696/0.1064, allocations: 31.98 kB / 385.6 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1064, allocations: 0 / 385.6 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.1065, allocations: 8 kB / 385.6 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.1065, allocations: 3.984 kB / 385.6 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.1065, allocations: 7.875 kB / 385.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005394/0.107, allocations: 367.6 kB / 385.9 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.285e-05/0.107, allocations: 15.94 kB / 385.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.1071, allocations: 4 kB / 386 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.1072, allocations: 11.98 kB / 386 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.871e-05/0.1072, allocations: 12.16 kB / 386 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.136e-06/0.1072, allocations: 4 kB / 386 MB, free: 8.156 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.832e-05/0.1073, allocations: 99.27 kB / 386.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1073, allocations: 0 / 386.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000319/0.1076, allocations: 27.94 kB / 386.1 MB, free: 8.031 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 (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.0001078/0.1077, allocations: 111.3 kB / 386.2 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003275/0.1081, allocations: 111.7 kB / 386.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1081, allocations: 4 kB / 386.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.1082, allocations: 28.84 kB / 386.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004681/0.1086, allocations: 54.7 kB / 386.4 MB, free: 7.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006936/0.1093, allocations: 390.4 kB / 386.8 MB, free: 7.312 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.939e-05/0.1094, allocations: 93.67 kB / 386.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.189e-05/0.1095, allocations: 12.64 kB / 386.9 MB, free: 7.191 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.682e-05/0.1095, allocations: 16.5 kB / 386.9 MB, free: 7.172 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1095, allocations: 4 kB / 386.9 MB, free: 7.168 MB / 350.1 MB Notification: Performance of Templates: time 0.004156/0.1137, allocations: 1.255 MB / 388.2 MB, free: 5.965 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.2245424289722]