Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 72.08 kB / 21.69 MB, free: 2.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 142 kB / 24.97 MB, free: 8.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9544/0.9544, allocations: 173.4 MB / 201.5 MB, free: 9.312 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 268 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.092e-05/3.258e-05, allocations: 10.19 kB / 268 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003111/0.003144, allocations: 2.382 MB / 270.4 MB, free: 4.332 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.004343, allocations: 0.822 MB / 271.3 MB, free: 3.504 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001527/0.004496, allocations: 7.938 kB / 271.3 MB, free: 3.496 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002633/0.004759, allocations: 59.44 kB / 271.3 MB, free: 3.438 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001934/0.004952, allocations: 71.48 kB / 271.4 MB, free: 3.367 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004595/0.005412, allocations: 195.4 kB / 271.6 MB, free: 3.176 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003567/0.005769, allocations: 411.4 kB / 272 MB, free: 2.773 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.005926, allocations: 67.8 kB / 272 MB, free: 2.707 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002587/0.006185, allocations: 231.5 kB / 272.3 MB, free: 2.48 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001707/0.006355, allocations: 151.6 kB / 272.4 MB, free: 2.332 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.546e-05/0.006401, allocations: 36 kB / 272.5 MB, free: 2.297 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.447e-05/0.006435, allocations: 32 kB / 272.5 MB, free: 2.266 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.907e-05/0.006524, allocations: 115.6 kB / 272.6 MB, free: 2.152 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.959e-05/0.006614, allocations: 111.6 kB / 272.7 MB, free: 2.043 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002854/0.006899, allocations: 282.9 kB / 273 MB, free: 1.766 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.006902, allocations: 0 / 273 MB, free: 1.766 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.006903, allocations: 4 kB / 273 MB, free: 1.762 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.006908, allocations: 0 / 273 MB, free: 1.762 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008734/0.007782, allocations: 0.6907 MB / 273.7 MB, free: 1.035 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.007815, allocations: 8.031 kB / 273.7 MB, free: 1.027 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.007915, allocations: 76.7 kB / 273.8 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.008218, allocations: 259.9 kB / 274 MB, free: 0.668 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/0.008403, allocations: 339.9 kB / 274.3 MB, free: 276 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.246e-05/0.008445, allocations: 28.38 kB / 274.4 MB, free: 248 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006189/0.009064, allocations: 464.7 kB / 274.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.00908, allocations: 8.141 kB / 274.8 MB, free: 15.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.009106, allocations: 16.12 kB / 274.9 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.009116, allocations: 8 kB / 274.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003812/0.009497, allocations: 235.7 kB / 275.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009285/0.01043, allocations: 0.9562 MB / 276 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005978/0.01102, allocations: 344.6 kB / 276.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.01121, allocations: 146.8 kB / 276.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.01124, allocations: 8 kB / 276.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.01126, allocations: 49.27 kB / 276.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.894e-06/0.01127, allocations: 4 kB / 276.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.007151/0.01842, allocations: 2.679 MB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/0.01849, allocations: 149 kB / 279.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001959/0.01869, allocations: 304.2 kB / 279.7 MB, free: 10.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.716e-05/0.01874, allocations: 33.7 kB / 279.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.374e-05/0.01883, allocations: 204.4 kB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.01895, allocations: 186.4 kB / 280.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/0.01913, allocations: 107.9 kB / 280.2 MB, free: 10.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.01924, allocations: 0.5117 MB / 280.7 MB, free: 9.609 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004323/0.01968, allocations: 321.2 kB / 281.1 MB, free: 9.297 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004737/0.02015, allocations: 428.1 kB / 281.5 MB, free: 8.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007867/0.02094, allocations: 0.6435 MB / 282.1 MB, free: 8.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.02094, allocations: 4 kB / 282.1 MB, free: 8.156 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001072/0.02201, allocations: 0.7785 MB / 282.9 MB, free: 7.367 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.02203, allocations: 6.656 kB / 282.9 MB, free: 7.363 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.02204, allocations: 4 kB / 282.9 MB, free: 7.359 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.02206, allocations: 4 kB / 282.9 MB, free: 7.355 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006454/0.02271, allocations: 163.7 kB / 283.1 MB, free: 7.195 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.02272, allocations: 12.22 kB / 283.1 MB, free: 7.184 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003862/0.0231, allocations: 75.81 kB / 283.2 MB, free: 7.109 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.424e-05/0.02315, allocations: 23.98 kB / 283.2 MB, free: 7.086 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0001884/0.02334, allocations: 188.4 kB / 283.4 MB, free: 6.891 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002343/0.02357, allocations: 165.3 kB / 283.5 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.404e-05/0.02367, allocations: 67.61 kB / 283.6 MB, free: 6.656 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.02367, allocations: 8 kB / 283.6 MB, free: 6.648 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.02368, allocations: 0 / 283.6 MB, free: 6.648 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.02368, allocations: 7.984 kB / 283.6 MB, free: 6.641 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001983/0.02567, allocations: 1.53 MB / 285.1 MB, free: 4.895 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.02568, allocations: 15.94 kB / 285.2 MB, free: 4.879 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003785/0.02606, allocations: 164.7 kB / 285.3 MB, free: 4.719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.969e-06/0.02607, allocations: 16 kB / 285.3 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.498e-05/0.0261, allocations: 28 kB / 285.4 MB, free: 4.676 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.518e-06/0.02611, allocations: 15.94 kB / 285.4 MB, free: 4.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/0.02612, allocations: 23.86 kB / 285.4 MB, free: 4.637 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.02717, allocations: 1.233 MB / 286.6 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.02732, allocations: 99.62 kB / 286.7 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.543e-05/0.02738, allocations: 27.98 kB / 286.8 MB, free: 3.074 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002702/0.02765, allocations: 59.94 kB / 286.8 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.02778, allocations: 91.58 kB / 286.9 MB, free: 2.926 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.18e-05/0.02782, allocations: 35.94 kB / 286.9 MB, free: 2.891 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001081/0.02792, allocations: 197.1 kB / 287.1 MB, free: 2.699 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.02792, allocations: 4 kB / 287.1 MB, free: 2.695 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003954/0.02832, allocations: 124 kB / 287.3 MB, free: 2.574 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0001298/0.02845, allocations: 134.9 kB / 287.4 MB, free: 2.434 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007907/0.02924, allocations: 0.578 MB / 288 MB, free: 1.852 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.02924, allocations: 4.438 kB / 288 MB, free: 1.848 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002188/0.02946, allocations: 170.1 kB / 288.1 MB, free: 1.68 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006175/0.03008, allocations: 168.5 kB / 288.3 MB, free: 1.523 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.03159, allocations: 1.186 MB / 289.5 MB, free: 120 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001191/0.03171, allocations: 138.7 kB / 289.6 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002874/0.03199, allocations: 87.2 kB / 289.7 MB, free: 15.88 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001975/0.03219, allocations: 40.5 kB / 289.7 MB, free: 15.84 MB / 282.7 MB Notification: Performance of SimCode: time 1.262e-06/0.03219, allocations: 4 kB / 289.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of Templates: time 0.009668/0.04186, allocations: 9.046 MB / 298.8 MB, free: 6.863 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.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: 3.0858579978812486]