Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001026/0.001026, 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.001128/0.001128, 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.9899/0.9899, 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.ClockedWithDiscreteController,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.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0 / 272.9 MB, free: 1.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.437e-05/2.63e-05, allocations: 2.312 kB / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003573/0.003599, allocations: 2.069 MB / 275 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.004633, allocations: 0.5452 MB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001359/0.004769, allocations: 4 kB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.004912, allocations: 19.8 kB / 275.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001781/0.00509, allocations: 27.72 kB / 275.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002805/0.00537, allocations: 59.8 kB / 275.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000204/0.005574, allocations: 127.5 kB / 275.8 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.005737, allocations: 37.61 kB / 275.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001407/0.005877, allocations: 75.8 kB / 275.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.005977, allocations: 39.88 kB / 275.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.536e-05/0.006013, allocations: 12 kB / 276 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.045e-05/0.006033, allocations: 8 kB / 276 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.796e-05/0.006071, allocations: 35.91 kB / 276 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.66e-05/0.006128, allocations: 39.86 kB / 276 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.006357, allocations: 95.52 kB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.006361, allocations: 0 / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.006363, allocations: 0 / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.006371, allocations: 0 / 276.1 MB, free: 14.36 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006032/0.006974, allocations: 452.1 kB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.007019, allocations: 8.031 kB / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.548e-05/0.007085, allocations: 24.84 kB / 276.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002138/0.007298, allocations: 160.4 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.007317, allocations: 12.38 kB / 276.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.597e-05/0.007353, allocations: 12.38 kB / 276.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004643/0.007817, allocations: 236.8 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.007834, allocations: 4.172 kB / 277 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.00785, allocations: 8.312 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.007863, allocations: 11.94 kB / 277 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001082/0.007971, allocations: 39.91 kB / 277.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007615/0.008733, allocations: 0.629 MB / 277.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003329/0.009066, allocations: 141.3 kB / 277.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.963e-05/0.009155, allocations: 55.14 kB / 277.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.009186, allocations: 4 kB / 277.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.207e-05/0.009228, allocations: 53.3 kB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.625e-06/0.009231, allocations: 0 / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003646/0.009596, allocations: 121.5 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.366e-05/0.009669, allocations: 114.8 kB / 278.2 MB, free: 12.06 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.009788, allocations: 189 kB / 278.4 MB, free: 11.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.009804, allocations: 33.7 kB / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.571e-05/0.00988, allocations: 154.8 kB / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.615e-05/0.009906, allocations: 23.8 kB / 278.6 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-05/0.009956, allocations: 31.36 kB / 278.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.0101, allocations: 0.4922 MB / 279.1 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.071e-05/0.01013, allocations: 11.98 kB / 279.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.753e-05/0.01019, allocations: 85.42 kB / 279.2 MB, free: 10.97 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001064/0.0103, allocations: 101.7 kB / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.0103, allocations: 0 / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001714/0.01047, allocations: 113.6 kB / 279.4 MB, free: 10.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.01049, allocations: 8 kB / 279.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.0105, allocations: 0 / 279.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.01052, allocations: 7.984 kB / 279.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.01063, allocations: 27.94 kB / 279.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.01064, allocations: 11.97 kB / 279.5 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.905e-05/0.0107, allocations: 15.88 kB / 279.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.01071, allocations: 4 kB / 279.5 MB, free: 10.64 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.0001049/0.01082, allocations: 160.6 kB / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.01096, allocations: 89.56 kB / 279.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.996e-05/0.01102, allocations: 16.77 kB / 279.7 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.01102, allocations: 4 kB / 279.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.01102, allocations: 0 / 279.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.01103, allocations: 0 / 279.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000222/0.01125, allocations: 144.5 kB / 279.9 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.01125, allocations: 4 kB / 279.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001419/0.0114, allocations: 31.92 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.471e-06/0.0114, allocations: 4 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.01142, allocations: 7.984 kB / 279.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.01142, allocations: 0 / 279.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.01143, allocations: 8 kB / 279.9 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003302/0.01176, allocations: 423 kB / 280.4 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.262e-05/0.01178, allocations: 11.89 kB / 280.4 MB, free: 9.684 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.302e-05/0.0118, allocations: 4 kB / 280.4 MB, free: 9.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.01192, allocations: 8 kB / 280.4 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.196e-05/0.01196, allocations: 7.984 kB / 280.4 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-06/0.01197, allocations: 4 kB / 280.4 MB, free: 9.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.156e-05/0.01203, allocations: 138.1 kB / 280.5 MB, free: 9.527 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01203, allocations: 0 / 280.5 MB, free: 9.527 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003171/0.01234, allocations: 31.88 kB / 280.6 MB, free: 9.496 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.0001101/0.01245, allocations: 107.3 kB / 280.7 MB, free: 9.383 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001609/0.01262, allocations: 63.53 kB / 280.7 MB, free: 9.316 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.01262, allocations: 0 / 280.7 MB, free: 9.316 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.314e-05/0.01265, allocations: 19.62 kB / 280.7 MB, free: 9.293 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005044/0.01316, allocations: 55.31 kB / 280.8 MB, free: 9.238 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008567/0.01401, allocations: 359.2 kB / 281.1 MB, free: 8.852 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.455e-05/0.01408, allocations: 71.33 kB / 281.2 MB, free: 8.762 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.692e-05/0.01411, allocations: 8.969 kB / 281.2 MB, free: 8.754 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.384e-05/0.01416, allocations: 16.5 kB / 281.2 MB, free: 8.734 MB / 266.7 MB Notification: Performance of SimCode: time 1.483e-06/0.01416, allocations: 0 / 281.2 MB, free: 8.734 MB / 266.7 MB Notification: Performance of Templates: time 0.003991/0.01815, allocations: 1.261 MB / 282.5 MB, free: 7.504 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.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.7566487370058894]