Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001454/0.001454, allocations: 88.31 kB / 20.96 MB, free: 3.477 MB / 18.57 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.001562/0.001562, allocations: 161.6 kB / 24.27 MB, free: 172 kB / 18.57 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.458/1.458, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 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.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.88e-05/3.054e-05, allocations: 2.312 kB / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004065/0.004096, allocations: 2.043 MB / 274.3 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.005443, allocations: 0.5103 MB / 274.8 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.005624, allocations: 7.938 kB / 274.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.00579, allocations: 15.8 kB / 274.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001428/0.005933, allocations: 31.72 kB / 274.9 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003346/0.006268, allocations: 51.86 kB / 275 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00025/0.006518, allocations: 131.5 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.006675, allocations: 45.91 kB / 275.1 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001776/0.006852, allocations: 83.73 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.333e-05/0.006946, allocations: 39.89 kB / 275.2 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.89e-05/0.006975, allocations: 8 kB / 275.3 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.43e-05/0.006999, allocations: 12 kB / 275.3 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.728e-05/0.007036, allocations: 23.91 kB / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.736e-05/0.007103, allocations: 43.84 kB / 275.3 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002495/0.007353, allocations: 123.6 kB / 275.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.007359, allocations: 4 kB / 275.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.00736, allocations: 0 / 275.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.007366, allocations: 0 / 275.5 MB, free: 14.66 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0007072/0.008073, allocations: 361.7 kB / 275.8 MB, free: 14.28 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.008114, allocations: 8.031 kB / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.268e-05/0.008197, allocations: 24.84 kB / 275.8 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003615/0.008558, allocations: 161.5 kB / 276 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.008578, allocations: 8.375 kB / 276 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.849e-05/0.008627, allocations: 12.38 kB / 276 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000591/0.009218, allocations: 231.1 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.009237, allocations: 4.188 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.009252, allocations: 384 / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.009265, allocations: 7.938 kB / 276.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002835/0.009548, allocations: 87.86 kB / 276.3 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000816/0.01036, allocations: 496.6 kB / 276.8 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004244/0.01079, allocations: 143.9 kB / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.01096, allocations: 66.64 kB / 277 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.312e-05/0.011, allocations: 4 kB / 277 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.01103, allocations: 38.55 kB / 277.1 MB, free: 12.87 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.01103, allocations: 4 kB / 277.1 MB, free: 12.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005869/0.01162, allocations: 189.5 kB / 277.3 MB, free: 12.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/0.01174, allocations: 114.9 kB / 277.4 MB, free: 12.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.01188, allocations: 137.2 kB / 277.5 MB, free: 12.4 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.01191, allocations: 29.7 kB / 277.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.132e-05/0.012, allocations: 111.9 kB / 277.6 MB, free: 12.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.747e-05/0.01203, allocations: 23.84 kB / 277.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.309e-05/0.01208, allocations: 25.72 kB / 277.7 MB, free: 12.2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.01226, allocations: 326.8 kB / 278 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.01237, allocations: 27.97 kB / 278 MB, free: 11.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.01253, allocations: 91.83 kB / 278.1 MB, free: 11.72 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002719/0.0128, allocations: 114.7 kB / 278.2 MB, free: 11.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.0128, allocations: 4 kB / 278.2 MB, free: 11.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003307/0.01313, allocations: 141.4 kB / 278.4 MB, free: 11.44 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.01315, allocations: 4 kB / 278.4 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.01316, allocations: 4 kB / 278.4 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.01317, allocations: 0 / 278.4 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.0133, allocations: 28.2 kB / 278.4 MB, free: 11.4 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.01331, allocations: 11.92 kB / 278.4 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.01341, allocations: 31.81 kB / 278.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.01342, allocations: 4 kB / 278.5 MB, free: 11.36 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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.000124/0.01355, allocations: 121.8 kB / 278.6 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001982/0.01375, allocations: 101.5 kB / 278.7 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.682e-05/0.01379, allocations: 16.78 kB / 278.7 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.0138, allocations: 4 kB / 278.7 MB, free: 11.1 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.0138, allocations: 0 / 278.7 MB, free: 11.1 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.01381, allocations: 0 / 278.7 MB, free: 11.1 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.01406, allocations: 145.2 kB / 278.8 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.94e-06/0.01407, allocations: 4 kB / 278.9 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002219/0.01429, allocations: 43.91 kB / 278.9 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.01429, allocations: 0 / 278.9 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.01431, allocations: 4 kB / 278.9 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.01431, allocations: 0 / 278.9 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.01431, allocations: 0 / 278.9 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007822/0.01509, allocations: 394.4 kB / 279.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.149e-05/0.01512, allocations: 19.98 kB / 279.3 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.768e-05/0.01515, allocations: 4 kB / 279.3 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.0153, allocations: 11.98 kB / 279.3 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/0.01534, allocations: 4 kB / 279.3 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.01535, allocations: 7.984 kB / 279.3 MB, free: 10.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.362e-05/0.01544, allocations: 99.27 kB / 279.4 MB, free: 10.33 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01544, allocations: 0 / 279.4 MB, free: 10.33 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003244/0.01576, allocations: 31.89 kB / 279.5 MB, free: 10.3 MB / 266.7 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.0001317/0.01589, allocations: 103.2 kB / 279.6 MB, free: 10.19 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003177/0.01621, allocations: 95.75 kB / 279.7 MB, free: 10.1 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.01622, allocations: 4 kB / 279.7 MB, free: 10.09 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.881e-05/0.01632, allocations: 27.91 kB / 279.7 MB, free: 10.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005351/0.01685, allocations: 60.45 kB / 279.7 MB, free: 10.01 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009596/0.01781, allocations: 375.3 kB / 280.1 MB, free: 9.609 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001251/0.01794, allocations: 106.3 kB / 280.2 MB, free: 9.484 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.891e-05/0.01798, allocations: 16.89 kB / 280.2 MB, free: 9.469 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.519e-05/0.01803, allocations: 12.5 kB / 280.2 MB, free: 9.453 MB / 266.7 MB Notification: Performance of SimCode: time 4.11e-07/0.01803, allocations: 4 kB / 280.2 MB, free: 9.449 MB / 266.7 MB Notification: Performance of Templates: time 0.004845/0.02287, allocations: 1.325 MB / 281.6 MB, free: 8.184 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.380069819046184]