Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001624/0.001624, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001656/0.001656, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.509/1.509, allocations: 230.6 MB / 258.3 MB, free: 7.973 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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 47.92 kB / 379 MB, free: 2.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3083, allocations: 53.36 MB / 432.4 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003749/0.312, allocations: 2.082 MB / 434.5 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.3132, allocations: 0.6193 MB / 435.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.3133, allocations: 7.938 kB / 435.1 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000125/0.3134, allocations: 19.8 kB / 435.1 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001828/0.3136, allocations: 35.7 kB / 435.1 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002722/0.3139, allocations: 63.81 kB / 435.2 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002168/0.3141, allocations: 127.6 kB / 435.3 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.3143, allocations: 42.05 kB / 435.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.448e-05/0.3144, allocations: 59.72 kB / 435.4 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.3145, allocations: 63.69 kB / 435.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.438e-05/0.3145, allocations: 8 kB / 435.5 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.379e-05/0.3145, allocations: 12 kB / 435.5 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.09e-05/0.3146, allocations: 35.86 kB / 435.5 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.492e-05/0.3147, allocations: 67.59 kB / 435.6 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002334/0.3149, allocations: 144.6 kB / 435.7 MB, free: 3.566 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3149, allocations: 0 / 435.7 MB, free: 3.566 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3149, allocations: 0 / 435.7 MB, free: 3.566 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.3149, allocations: 0 / 435.7 MB, free: 3.566 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006567/0.3156, allocations: 385.5 kB / 436.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.3156, allocations: 12.03 kB / 436.1 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.124e-05/0.3156, allocations: 24.8 kB / 436.2 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002747/0.3159, allocations: 162.2 kB / 436.3 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.3159, allocations: 12.38 kB / 436.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.281e-05/0.316, allocations: 12.38 kB / 436.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005126/0.3165, allocations: 246.9 kB / 436.6 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.3165, allocations: 4 kB / 436.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.3165, allocations: 7.938 kB / 436.6 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.3165, allocations: 4 kB / 436.6 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/0.3168, allocations: 83.81 kB / 436.7 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000695/0.3175, allocations: 0.5466 MB / 437.2 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003543/0.3178, allocations: 143.7 kB / 437.4 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.318, allocations: 66.77 kB / 437.4 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.997e-05/0.318, allocations: 11.98 kB / 437.4 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.3181, allocations: 34.55 kB / 437.5 MB, free: 1.648 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.3181, allocations: 8 kB / 437.5 MB, free: 1.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005408/0.3186, allocations: 189.5 kB / 437.7 MB, free: 1.449 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.621e-05/0.3187, allocations: 110.8 kB / 437.8 MB, free: 1.316 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.3189, allocations: 158.2 kB / 437.9 MB, free: 1.152 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.3189, allocations: 29.7 kB / 438 MB, free: 1.117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.681e-05/0.319, allocations: 116.6 kB / 438.1 MB, free: 1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.319, allocations: 27.78 kB / 438.1 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.614e-05/0.319, allocations: 37.7 kB / 438.1 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.3192, allocations: 326.8 kB / 438.5 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.3194, allocations: 35.91 kB / 438.5 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001823/0.3196, allocations: 140.3 kB / 438.6 MB, free: 392 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003762/0.32, allocations: 185.5 kB / 438.8 MB, free: 156 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.32, allocations: 3.938 kB / 438.8 MB, free: 152 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004324/0.3204, allocations: 197.2 kB / 439 MB, free: 15.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.3204, allocations: 8 kB / 439 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.3204, allocations: 4 kB / 439 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.3204, allocations: 4.469 kB / 439 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/0.3206, allocations: 55.91 kB / 439.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.3206, allocations: 8 kB / 439.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.3207, allocations: 19.88 kB / 439.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.413e-05/0.3207, allocations: 12 kB / 439.1 MB, free: 15.84 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.0001192/0.3208, allocations: 133.7 kB / 439.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002053/0.321, allocations: 93.84 kB / 439.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.349e-05/0.3211, allocations: 20.7 kB / 439.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.3211, allocations: 8 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3211, allocations: 0 / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3211, allocations: 4 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002905/0.3214, allocations: 188.5 kB / 439.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3214, allocations: 3.938 kB / 439.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001753/0.3216, allocations: 39.92 kB / 439.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.3216, allocations: 0 / 439.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.3216, allocations: 7.984 kB / 439.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3216, allocations: 0 / 439.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3216, allocations: 0 / 439.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005592/0.3222, allocations: 381.7 kB / 440 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.978e-05/0.3222, allocations: 31.84 kB / 440 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.3223, allocations: 8 kB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.3224, allocations: 8 kB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.61e-05/0.3224, allocations: 11.98 kB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.3224, allocations: 8 kB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.67e-05/0.3225, allocations: 111.2 kB / 440.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3225, allocations: 0 / 440.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003148/0.3228, allocations: 32 kB / 440.2 MB, free: 14.7 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.0001033/0.3229, allocations: 95.78 kB / 440.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003346/0.3233, allocations: 127.7 kB / 440.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3233, allocations: 0 / 440.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.625e-05/0.3234, allocations: 27.92 kB / 440.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004847/0.3239, allocations: 62.55 kB / 440.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008475/0.3247, allocations: 460.5 kB / 440.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.3251, allocations: 0.7278 MB / 441.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.341e-05/0.3252, allocations: 19.44 kB / 441.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3252, allocations: 3.938 kB / 441.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of Templates: time 0.003564/0.3287, allocations: 1.629 MB / 443.3 MB, free: 11.5 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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: 7.431050539016724]