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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001644/0.001644, allocations: 70.03 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 153.6 kB / 24.49 MB, free: 3.852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 173.4 MB / 201.1 MB, free: 12.7 MB / 190.1 MB " [Timeout remaining time 178] 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=5051,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=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00207/0.00207, allocations: 46.48 kB / 319.4 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09371/0.09578, allocations: 52.15 MB / 371.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004797/0.1006, allocations: 1.975 MB / 373.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.1018, allocations: 0.4987 MB / 374 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.1019, allocations: 3.938 kB / 374 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.1021, allocations: 19.8 kB / 374 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000176/0.1022, allocations: 31.77 kB / 374.1 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003051/0.1025, allocations: 58.88 kB / 374.1 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002334/0.1028, allocations: 119.5 kB / 374.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.103, allocations: 53.59 kB / 374.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001113/0.1031, allocations: 47.8 kB / 374.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.1032, allocations: 47.7 kB / 374.4 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.594e-05/0.1032, allocations: 12 kB / 374.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.366e-05/0.1033, allocations: 12 kB / 374.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.467e-05/0.1033, allocations: 27.91 kB / 374.4 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.286e-05/0.1034, allocations: 43.8 kB / 374.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002746/0.1036, allocations: 139.3 kB / 374.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1036, allocations: 0 / 374.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1036, allocations: 0 / 374.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.1037, allocations: 0 / 374.6 MB, free: 4.266 MB / 334.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.0007633/0.1044, allocations: 357.8 kB / 375 MB, free: 3.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.1045, allocations: 12.92 kB / 375 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.322e-05/0.1045, allocations: 16.84 kB / 375 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/0.1048, allocations: 146.3 kB / 375.1 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.1049, allocations: 8.375 kB / 375.2 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.798e-05/0.1049, allocations: 16.38 kB / 375.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007071/0.1056, allocations: 258.8 kB / 375.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.1056, allocations: 0 / 375.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.1056, allocations: 4 kB / 375.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.1056, allocations: 4 kB / 375.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003878/0.106, allocations: 95.8 kB / 375.5 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007432/0.1068, allocations: 488.6 kB / 376 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004568/0.1072, allocations: 143.9 kB / 376.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002127/0.1074, allocations: 66.64 kB / 376.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.1075, allocations: 4 kB / 376.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.1075, allocations: 42.55 kB / 376.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.1075, allocations: 0 / 376.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007102/0.1082, allocations: 189.6 kB / 376.4 MB, free: 2.277 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.113e-05/0.1083, allocations: 110.8 kB / 376.5 MB, free: 2.145 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.1085, allocations: 137.7 kB / 376.7 MB, free: 2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.1085, allocations: 25.7 kB / 376.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.286e-05/0.1086, allocations: 120 kB / 376.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.638e-05/0.1086, allocations: 31.78 kB / 376.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.463e-05/0.1087, allocations: 29.72 kB / 376.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.1089, allocations: 322.8 kB / 377.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.109, allocations: 39.97 kB / 377.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002508/0.1093, allocations: 137.7 kB / 377.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004197/0.1097, allocations: 193.4 kB / 377.6 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1097, allocations: 3.938 kB / 377.6 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005456/0.1102, allocations: 201.2 kB / 377.8 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.1103, allocations: 6.656 kB / 377.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.1103, allocations: 4 kB / 377.8 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/0.1103, allocations: 8 kB / 377.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002134/0.1105, allocations: 39.92 kB / 377.8 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/0.1105, allocations: 8.453 kB / 377.8 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001677/0.1107, allocations: 31.84 kB / 377.9 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.1107, allocations: 11.98 kB / 377.9 MB, free: 0.6836 MB / 334.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.0001388/0.1109, allocations: 129.8 kB / 378 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002237/0.1111, allocations: 89.52 kB / 378.1 MB, free: 464 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.732e-05/0.1111, allocations: 16.78 kB / 378.1 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.1111, allocations: 4 kB / 378.1 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.1112, allocations: 0 / 378.1 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1112, allocations: 0 / 378.1 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000335/0.1115, allocations: 141.6 kB / 378.2 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1115, allocations: 4 kB / 378.2 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002484/0.1117, allocations: 35.92 kB / 378.3 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.908e-06/0.1118, allocations: 7.938 kB / 378.3 MB, free: 224 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.1118, allocations: 4 kB / 378.3 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1118, allocations: 3.938 kB / 378.3 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.1118, allocations: 7.984 kB / 378.3 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008171/0.1126, allocations: 375.4 kB / 378.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.284e-05/0.1126, allocations: 11.92 kB / 378.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.1127, allocations: 4.062 kB / 378.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002382/0.1129, allocations: 15.98 kB / 378.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.794e-05/0.1129, allocations: 3.984 kB / 378.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.113, allocations: 4 kB / 378.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.441e-05/0.113, allocations: 99.27 kB / 378.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.113, allocations: 0 / 378.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005083/0.1135, allocations: 31.89 kB / 378.8 MB, free: 15.65 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.000126/0.1137, allocations: 103.2 kB / 378.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005111/0.1142, allocations: 123.7 kB / 379.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1142, allocations: 0 / 379.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001706/0.1143, allocations: 27.92 kB / 379.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007145/0.1151, allocations: 48.95 kB / 379.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007755/0.1158, allocations: 410.2 kB / 379.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001037/0.1159, allocations: 101.8 kB / 379.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.957e-05/0.116, allocations: 9.141 kB / 379.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.384e-05/0.116, allocations: 16.5 kB / 379.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.116, allocations: 4 kB / 379.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of Templates: time 0.005768/0.1218, allocations: 1.271 MB / 380.9 MB, free: 13.52 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (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 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.317324919975363]