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.001397/0.001397, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001532/0.001532, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.636/1.636, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.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.001668/0.001668, allocations: 43.92 kB / 373.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1167, allocations: 53.34 MB / 426.8 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003488/0.1202, allocations: 2.017 MB / 428.8 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.1212, allocations: 0.5414 MB / 429.3 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.1213, allocations: 4 kB / 429.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.1214, allocations: 15.8 kB / 429.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.293e-05/0.1215, allocations: 23.73 kB / 429.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003/0.1218, allocations: 59.86 kB / 429.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001892/0.122, allocations: 119.6 kB / 429.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.1222, allocations: 47.25 kB / 429.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.865e-05/0.1222, allocations: 51.84 kB / 429.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.09e-05/0.1223, allocations: 55.7 kB / 429.7 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.222e-05/0.1224, allocations: 15.94 kB / 429.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.079e-05/0.1224, allocations: 8 kB / 429.7 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.154e-05/0.1224, allocations: 23.92 kB / 429.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.115e-05/0.1225, allocations: 59.66 kB / 429.8 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.1227, allocations: 127.4 kB / 429.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1227, allocations: 0 / 429.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1227, allocations: 0 / 429.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1227, allocations: 0 / 429.9 MB, free: 1.129 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.0006697/0.1234, allocations: 427 kB / 430.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.1234, allocations: 12.02 kB / 430.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.336e-05/0.1235, allocations: 16.84 kB / 430.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002664/0.1237, allocations: 207.9 kB / 430.6 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.1237, allocations: 12.38 kB / 430.6 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.899e-05/0.1238, allocations: 16.33 kB / 430.6 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005133/0.1243, allocations: 238.9 kB / 430.8 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.1243, allocations: 4 kB / 430.9 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.805e-05/0.1243, allocations: 4 kB / 430.9 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.1243, allocations: 4 kB / 430.9 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002734/0.1246, allocations: 87.86 kB / 430.9 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007303/0.1253, allocations: 0.596 MB / 431.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000283/0.1256, allocations: 135.9 kB / 431.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.1258, allocations: 74.62 kB / 431.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.1258, allocations: 8 kB / 431.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.1258, allocations: 38.5 kB / 431.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.1258, allocations: 4 kB / 431.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005583/0.1264, allocations: 177.4 kB / 432 MB, free: 14.87 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.91e-05/0.1265, allocations: 119.2 kB / 432.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.1266, allocations: 126.1 kB / 432.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.1266, allocations: 29.7 kB / 432.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.867e-05/0.1267, allocations: 115.8 kB / 432.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.292e-05/0.1267, allocations: 31.72 kB / 432.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.787e-05/0.1268, allocations: 37.7 kB / 432.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1269, allocations: 322.8 kB / 432.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.1271, allocations: 39.97 kB / 432.8 MB, free: 14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001958/0.1273, allocations: 124.8 kB / 432.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003177/0.1276, allocations: 180.7 kB / 433.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1276, allocations: 0 / 433.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003979/0.128, allocations: 189.8 kB / 433.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.128, allocations: 12.03 kB / 433.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.128, allocations: 0 / 433.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.562e-05/0.128, allocations: 15.97 kB / 433.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.1282, allocations: 39.92 kB / 433.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.1282, allocations: 7.984 kB / 433.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.1283, allocations: 19.89 kB / 433.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.1284, allocations: 8 kB / 433.4 MB, free: 13.32 MB / 366.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.0001423/0.1285, allocations: 129.7 kB / 433.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/0.1286, allocations: 89.58 kB / 433.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.695e-05/0.1287, allocations: 20.64 kB / 433.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/0.1287, allocations: 4 kB / 433.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.1287, allocations: 0 / 433.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.1287, allocations: 0 / 433.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002991/0.129, allocations: 209.5 kB / 433.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.129, allocations: 0 / 433.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.1292, allocations: 27.98 kB / 433.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.1292, allocations: 4 kB / 433.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.1292, allocations: 11.92 kB / 433.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.947e-06/0.1292, allocations: 11.92 kB / 433.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1292, allocations: 4 kB / 433.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005864/0.1298, allocations: 361.5 kB / 434.2 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.497e-05/0.1299, allocations: 93.05 kB / 434.3 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.737e-05/0.1299, allocations: 15.94 kB / 434.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.1301, allocations: 7.984 kB / 434.3 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.926e-05/0.1301, allocations: 11.92 kB / 434.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.717e-06/0.1301, allocations: 4 kB / 434.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.872e-05/0.1302, allocations: 103.3 kB / 434.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1302, allocations: 3.938 kB / 434.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003454/0.1305, allocations: 24 kB / 434.5 MB, free: 12.09 MB / 366.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.0001227/0.1307, allocations: 103.2 kB / 434.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003636/0.131, allocations: 111.8 kB / 434.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.131, allocations: 4 kB / 434.7 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.1311, allocations: 28.84 kB / 434.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005215/0.1317, allocations: 55.95 kB / 434.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008863/0.1325, allocations: 389.3 kB / 435.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.1329, allocations: 0.7123 MB / 435.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.113e-05/0.1329, allocations: 8.641 kB / 435.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.796e-05/0.133, allocations: 15.44 kB / 435.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.133, allocations: 0 / 435.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of Templates: time 0.004542/0.1375, allocations: 1.21 MB / 437.1 MB, free: 9.449 MB / 366.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/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: 5.030531346797943]