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.0008924/0.0008924, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001001/0.001001, allocations: 165 kB / 24.56 MB, free: 12 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 0.9238/0.9238, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] 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 2.544e-06/2.544e-06, allocations: 0 / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.158e-05/2.413e-05, allocations: 2.312 kB / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003291/0.003315, allocations: 2.065 MB / 275 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008538/0.004169, allocations: 0.5219 MB / 275.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.454e-05/0.004263, allocations: 8 kB / 275.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.004378, allocations: 15.8 kB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.45e-05/0.004453, allocations: 23.73 kB / 275.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002775/0.00473, allocations: 59.8 kB / 275.6 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000178/0.004908, allocations: 127.5 kB / 275.8 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.005042, allocations: 33.62 kB / 275.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.005156, allocations: 75.8 kB / 275.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.271e-05/0.005238, allocations: 39.88 kB / 275.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.948e-05/0.005268, allocations: 12 kB / 275.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.783e-05/0.005286, allocations: 12 kB / 275.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.198e-05/0.005318, allocations: 23.91 kB / 276 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.574e-05/0.005373, allocations: 39.92 kB / 276 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001671/0.00554, allocations: 91.58 kB / 276.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.005544, allocations: 4 kB / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.22e-07/0.005545, allocations: 0 / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.005549, allocations: 0 / 276.1 MB, free: 14.39 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005054/0.006054, allocations: 440.1 kB / 276.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.006094, allocations: 12.03 kB / 276.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.256e-05/0.006156, allocations: 28.84 kB / 276.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.006359, allocations: 160.3 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.694e-05/0.006376, allocations: 12.38 kB / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.264e-05/0.006409, allocations: 12.38 kB / 276.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004042/0.006813, allocations: 224.8 kB / 277 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.006827, allocations: 192 / 277 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.006843, allocations: 8.375 kB / 277 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.006855, allocations: 11.88 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.76e-05/0.006952, allocations: 39.91 kB / 277 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006043/0.007556, allocations: 0.6328 MB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001979/0.007754, allocations: 137.4 kB / 277.8 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8e-05/0.007834, allocations: 55.14 kB / 277.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.007856, allocations: 4 kB / 277.8 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.007881, allocations: 37.33 kB / 277.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.007883, allocations: 8 kB / 277.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002959/0.008179, allocations: 117.5 kB / 278 MB, free: 12.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.222e-05/0.008241, allocations: 114.8 kB / 278.1 MB, free: 12.13 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.008349, allocations: 182 kB / 278.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.008367, allocations: 29.7 kB / 278.3 MB, free: 11.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.965e-05/0.008446, allocations: 170.6 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.097e-05/0.008467, allocations: 15.84 kB / 278.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.252e-05/0.00852, allocations: 31.38 kB / 278.5 MB, free: 11.67 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.008668, allocations: 0.4961 MB / 279 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.03e-05/0.008699, allocations: 4.125 kB / 279 MB, free: 11.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.746e-05/0.008776, allocations: 97.36 kB / 279.1 MB, free: 11.03 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001042/0.00888, allocations: 101.4 kB / 279.2 MB, free: 10.9 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.008884, allocations: 4 kB / 279.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001587/0.009043, allocations: 101.4 kB / 279.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.009058, allocations: 8 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.279e-06/0.009063, allocations: 0 / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.009078, allocations: 4 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.009201, allocations: 31.92 kB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.00921, allocations: 4 kB / 279.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.897e-05/0.009269, allocations: 15.83 kB / 279.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.009278, allocations: 4 kB / 279.4 MB, free: 10.72 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 8.885e-05/0.009367, allocations: 176.7 kB / 279.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.009497, allocations: 77.64 kB / 279.6 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.333e-05/0.009531, allocations: 12.78 kB / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.009535, allocations: 4 kB / 279.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.009539, allocations: 3.938 kB / 279.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.009543, allocations: 0 / 279.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002136/0.009756, allocations: 148.4 kB / 279.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.009759, allocations: 4 kB / 279.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.009897, allocations: 27.98 kB / 279.8 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.009902, allocations: 3.984 kB / 279.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.009921, allocations: 12 kB / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.063e-06/0.009923, allocations: 0 / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.009925, allocations: 0 / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003156/0.01024, allocations: 406.6 kB / 280.3 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.866e-05/0.01026, allocations: 11.91 kB / 280.3 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/0.01028, allocations: 8 kB / 280.3 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.01039, allocations: 0 / 280.3 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.08e-05/0.01043, allocations: 7.984 kB / 280.3 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.01044, allocations: 8 kB / 280.3 MB, free: 9.754 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.098e-05/0.0105, allocations: 142.7 kB / 280.4 MB, free: 9.617 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.0105, allocations: 32 / 280.4 MB, free: 9.617 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003218/0.01083, allocations: 27.88 kB / 280.5 MB, free: 9.59 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 (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 8.749e-05/0.01091, allocations: 111.2 kB / 280.6 MB, free: 9.473 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001532/0.01107, allocations: 62.95 kB / 280.6 MB, free: 9.41 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.01107, allocations: 0 / 280.6 MB, free: 9.41 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.502e-05/0.0111, allocations: 23.7 kB / 280.7 MB, free: 9.383 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004694/0.01157, allocations: 52.08 kB / 280.7 MB, free: 9.332 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008037/0.01238, allocations: 350.4 kB / 281 MB, free: 8.953 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.837e-05/0.01244, allocations: 75.27 kB / 281.1 MB, free: 8.859 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.395e-05/0.01247, allocations: 4.5 kB / 281.1 MB, free: 8.855 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.98e-05/0.01251, allocations: 16.5 kB / 281.1 MB, free: 8.836 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01251, allocations: 4 kB / 281.1 MB, free: 8.832 MB / 266.7 MB Notification: Performance of Templates: time 0.003695/0.0162, allocations: 1.249 MB / 282.4 MB, free: 7.633 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.657605768647045]