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.001434/0.001434, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001694/0.001694, allocations: 206.6 kB / 24.47 MB, free: 3.977 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.819/1.819, allocations: 230.6 MB / 258.2 MB, free: 7.801 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.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 0.002191/0.002191, allocations: 47.92 kB / 378.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4108/0.413, allocations: 53.37 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.00559/0.4186, allocations: 1.988 MB / 434.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001386/0.42, allocations: 0.5414 MB / 434.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.4201, allocations: 0 / 434.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.4202, allocations: 23.8 kB / 434.9 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001959/0.4204, allocations: 35.72 kB / 434.9 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003159/0.4207, allocations: 47.88 kB / 434.9 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000248/0.421, allocations: 119.6 kB / 435.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.4212, allocations: 52.5 kB / 435.1 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.4213, allocations: 55.73 kB / 435.2 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.4214, allocations: 51.77 kB / 435.2 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.177e-05/0.4215, allocations: 12 kB / 435.2 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.057e-05/0.4215, allocations: 12 kB / 435.2 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.287e-05/0.4215, allocations: 27.91 kB / 435.3 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.713e-05/0.4216, allocations: 51.73 kB / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002584/0.4219, allocations: 123.2 kB / 435.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.4219, allocations: 0 / 435.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4219, allocations: 0 / 435.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.4219, allocations: 3.938 kB / 435.4 MB, free: 3.57 MB / 334.1 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.0007488/0.4226, allocations: 361.8 kB / 435.8 MB, free: 3.188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.4227, allocations: 12.03 kB / 435.8 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.186e-05/0.4227, allocations: 16.84 kB / 435.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003444/0.4231, allocations: 158.2 kB / 436 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/0.4231, allocations: 8.375 kB / 436 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.886e-05/0.4231, allocations: 16.38 kB / 436 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006677/0.4238, allocations: 250.1 kB / 436.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.4238, allocations: 0 / 436.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.002e-05/0.4239, allocations: 4 kB / 436.3 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.4239, allocations: 8 kB / 436.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003325/0.4242, allocations: 91.8 kB / 436.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008196/0.425, allocations: 492.4 kB / 436.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004947/0.4255, allocations: 143.7 kB / 437 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/0.4258, allocations: 70.77 kB / 437 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.4258, allocations: 8 kB / 437 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.4258, allocations: 38.55 kB / 437.1 MB, free: 1.762 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.994e-06/0.4258, allocations: 0 / 437.1 MB, free: 1.762 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008072/0.4266, allocations: 177.4 kB / 437.3 MB, free: 1.582 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.4267, allocations: 114.8 kB / 437.4 MB, free: 1.445 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001469/0.4269, allocations: 134.2 kB / 437.5 MB, free: 1.301 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.4269, allocations: 25.7 kB / 437.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.105e-05/0.427, allocations: 111.9 kB / 437.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.649e-05/0.427, allocations: 31.97 kB / 437.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.647e-05/0.4271, allocations: 29.72 kB / 437.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.4273, allocations: 322.8 kB / 438 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.4274, allocations: 35.97 kB / 438 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002737/0.4277, allocations: 141.6 kB / 438.2 MB, free: 0.543 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004567/0.4282, allocations: 185.5 kB / 438.4 MB, free: 320 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/0.4282, allocations: 4 kB / 438.4 MB, free: 316 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005728/0.4288, allocations: 201.7 kB / 438.6 MB, free: 108 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.4288, allocations: 8.062 kB / 438.6 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.4288, allocations: 7.984 kB / 438.6 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.458e-05/0.4288, allocations: 8 kB / 438.6 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002453/0.4291, allocations: 43.92 kB / 438.6 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.67e-05/0.4291, allocations: 7.984 kB / 438.6 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001801/0.4293, allocations: 23.89 kB / 438.7 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.633e-05/0.4293, allocations: 12.05 kB / 438.7 MB, free: 15.99 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001479/0.4295, allocations: 129.7 kB / 438.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000237/0.4297, allocations: 97.77 kB / 438.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.595e-05/0.4298, allocations: 20.72 kB / 438.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.4298, allocations: 4 kB / 438.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.4298, allocations: 3.938 kB / 438.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.4298, allocations: 0 / 438.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003571/0.4301, allocations: 133.2 kB / 439.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.4302, allocations: 3.984 kB / 439.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.4304, allocations: 35.92 kB / 439.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.227e-06/0.4304, allocations: 7.938 kB / 439.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.4305, allocations: 0 / 439.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.4305, allocations: 0 / 439.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.4305, allocations: 8 kB / 439.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007735/0.4312, allocations: 377.9 kB / 439.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.652e-05/0.4313, allocations: 19.81 kB / 439.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.485e-05/0.4313, allocations: 4 kB / 439.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.4315, allocations: 11.98 kB / 439.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.221e-05/0.4316, allocations: 11.92 kB / 439.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.4316, allocations: 4 kB / 439.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.382e-05/0.4317, allocations: 99.33 kB / 439.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4317, allocations: 4 kB / 439.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005889/0.4323, allocations: 24 kB / 439.7 MB, free: 14.95 MB / 350.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 (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.0001314/0.4324, allocations: 99.25 kB / 439.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004733/0.4329, allocations: 120.6 kB / 439.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4329, allocations: 4.062 kB / 439.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.433, allocations: 27.92 kB / 439.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008051/0.4338, allocations: 44 kB / 439.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.4349, allocations: 402.4 kB / 440.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001413/0.435, allocations: 113.8 kB / 440.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.897e-05/0.4351, allocations: 5.094 kB / 440.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.693e-05/0.4351, allocations: 23.36 kB / 440.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4351, allocations: 0 / 440.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of Templates: time 0.006102/0.4412, allocations: 1.437 MB / 441.9 MB, free: 12.67 MB / 350.1 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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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: 6.400113256007899]