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.0009924/0.0009924, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001126/0.001126, allocations: 168.5 kB / 24.99 MB, free: 8.344 MB / 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.109/1.109, allocations: 177.1 MB / 205.3 MB, free: 5.633 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.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 3.427e-06/3.427e-06, allocations: 0 / 273 MB, free: 1.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.949e-05/4.292e-05, allocations: 2.312 kB / 273 MB, free: 1.871 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004656/0.004699, allocations: 2.119 MB / 275.1 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.006031, allocations: 0.518 MB / 275.7 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001998/0.006231, allocations: 7.938 kB / 275.7 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.006424, allocations: 15.8 kB / 275.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001258/0.00655, allocations: 31.72 kB / 275.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004289/0.006979, allocations: 51.88 kB / 275.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002839/0.007262, allocations: 139.4 kB / 275.9 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002233/0.007486, allocations: 37.92 kB / 275.9 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001935/0.007679, allocations: 71.81 kB / 276 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.007816, allocations: 43.88 kB / 276 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.589e-05/0.007862, allocations: 12 kB / 276.1 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.217e-05/0.007884, allocations: 8 kB / 276.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.91e-05/0.007923, allocations: 27.91 kB / 276.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.885e-05/0.007982, allocations: 43.84 kB / 276.1 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002708/0.008253, allocations: 91.64 kB / 276.2 MB, free: 14.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.008258, allocations: 4 kB / 276.2 MB, free: 14.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.008259, allocations: 0 / 276.2 MB, free: 14.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.00827, allocations: 0 / 276.2 MB, free: 14.64 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.0007273/0.008998, allocations: 456 kB / 276.7 MB, free: 14.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.119e-05/0.009059, allocations: 8.031 kB / 276.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.02e-05/0.009139, allocations: 24.84 kB / 276.7 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002827/0.009422, allocations: 156.4 kB / 276.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.009441, allocations: 12.38 kB / 276.9 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.983e-05/0.00948, allocations: 20.33 kB / 276.9 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004938/0.009974, allocations: 216.8 kB / 277.1 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.009994, allocations: 192 / 277.1 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.781e-05/0.01001, allocations: 4.375 kB / 277.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/0.01003, allocations: 7.938 kB / 277.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001193/0.01015, allocations: 43.89 kB / 277.2 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007886/0.01094, allocations: 0.6445 MB / 277.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.01126, allocations: 141.3 kB / 277.9 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.316e-05/0.01134, allocations: 51.14 kB / 278 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.997e-05/0.01137, allocations: 7.984 kB / 278 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.0114, allocations: 37.39 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 2.244e-06/0.01141, allocations: 0 / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003499/0.01176, allocations: 117.5 kB / 278.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.209e-05/0.01185, allocations: 118.8 kB / 278.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.01199, allocations: 201.2 kB / 278.5 MB, free: 12.15 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.01201, allocations: 25.7 kB / 278.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.862e-05/0.0121, allocations: 158.8 kB / 278.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.464e-05/0.01213, allocations: 27.78 kB / 278.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.709e-05/0.01219, allocations: 27.38 kB / 278.7 MB, free: 11.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.01235, allocations: 0.4961 MB / 279.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.179e-05/0.0124, allocations: 15.98 kB / 279.2 MB, free: 11.37 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.196e-05/0.01248, allocations: 97.11 kB / 279.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001296/0.01261, allocations: 101.4 kB / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.01261, allocations: 0 / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001761/0.01279, allocations: 109.4 kB / 279.5 MB, free: 10.99 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.01281, allocations: 4 kB / 279.5 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.01282, allocations: 4.219 kB / 279.5 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.01284, allocations: 4 kB / 279.5 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.01295, allocations: 27.92 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.01296, allocations: 4 kB / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.968e-05/0.01303, allocations: 15.92 kB / 279.6 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/0.01304, allocations: 8 kB / 279.6 MB, free: 10.93 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.0001068/0.01315, allocations: 156.6 kB / 279.7 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00019/0.01334, allocations: 85.53 kB / 279.8 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.771e-05/0.01339, allocations: 24.77 kB / 279.8 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.01339, allocations: 4 kB / 279.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.0134, allocations: 4 kB / 279.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.0134, allocations: 0 / 279.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002521/0.01365, allocations: 148.5 kB / 280 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.01366, allocations: 4 kB / 280 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.01383, allocations: 43.91 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.01384, allocations: 4 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.504e-05/0.01386, allocations: 3.984 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.01386, allocations: 4 kB / 280 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.01387, allocations: 0 / 280 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004056/0.01427, allocations: 422.7 kB / 280.5 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.176e-05/0.01429, allocations: 15.94 kB / 280.5 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.063e-05/0.01432, allocations: 7.984 kB / 280.5 MB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.01444, allocations: 11.98 kB / 280.5 MB, free: 9.93 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.696e-05/0.01449, allocations: 3.984 kB / 280.5 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.0145, allocations: 4 kB / 280.5 MB, free: 9.922 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.687e-05/0.01458, allocations: 143.2 kB / 280.6 MB, free: 9.781 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01458, allocations: 4 kB / 280.6 MB, free: 9.777 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003489/0.01492, allocations: 23.88 kB / 280.7 MB, free: 9.754 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.0001378/0.01506, allocations: 111.2 kB / 280.8 MB, free: 9.637 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001822/0.01525, allocations: 71.11 kB / 280.8 MB, free: 9.566 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.01525, allocations: 3.938 kB / 280.9 MB, free: 9.562 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.197e-05/0.01529, allocations: 23.61 kB / 280.9 MB, free: 9.535 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005702/0.01586, allocations: 70.25 kB / 280.9 MB, free: 9.469 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001175/0.01704, allocations: 378.9 kB / 281.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.612e-05/0.01711, allocations: 71.33 kB / 281.4 MB, free: 8.977 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.368e-05/0.01715, allocations: 8.984 kB / 281.4 MB, free: 8.969 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.896e-05/0.0172, allocations: 12.5 kB / 281.4 MB, free: 8.953 MB / 266.7 MB Notification: Performance of SimCode: time 2.826e-06/0.01721, allocations: 0 / 281.4 MB, free: 8.953 MB / 266.7 MB Notification: Performance of Templates: time 0.00444/0.02165, allocations: 1.348 MB / 282.8 MB, free: 7.668 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] 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","",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.920432077953592]