Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00169/0.00169, allocations: 116.9 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001664/0.001664, allocations: 220.7 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.598/1.598, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 59.91 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1244, allocations: 53.37 MB / 427 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004198/0.1286, allocations: 2.403 MB / 429.4 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001817/0.1305, allocations: 0.8728 MB / 430.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002605/0.1307, allocations: 7.938 kB / 430.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003642/0.1311, allocations: 63.44 kB / 430.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002785/0.1314, allocations: 67.48 kB / 430.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006786/0.132, allocations: 197.8 kB / 430.6 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006088/0.1326, allocations: 395.5 kB / 431 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002366/0.1329, allocations: 75.5 kB / 431.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004335/0.1333, allocations: 175.4 kB / 431.3 MB, free: 364 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003187/0.1336, allocations: 187.2 kB / 431.5 MB, free: 176 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.52e-05/0.1337, allocations: 39.94 kB / 431.5 MB, free: 136 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.132e-05/0.1338, allocations: 35.94 kB / 431.5 MB, free: 100 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2577/0.3915, allocations: 105 kB / 431.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002845/0.3918, allocations: 162.7 kB / 431.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006027/0.3924, allocations: 368.2 kB / 432.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3924, allocations: 0.8438 kB / 432.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.3924, allocations: 1.25 kB / 432.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.3924, allocations: 0.5 kB / 432.2 MB, free: 7.91 MB / 350.1 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.001377/0.3938, allocations: 0.6778 MB / 432.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.3938, allocations: 10.78 kB / 432.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.014e-05/0.3939, allocations: 11.69 kB / 432.9 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.128e-05/0.3939, allocations: 67.64 kB / 432.9 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.3941, allocations: 45.39 kB / 433 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005291/0.3946, allocations: 315 kB / 433.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001931/0.3948, allocations: 138.7 kB / 433.4 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-05/0.3948, allocations: 29.88 kB / 433.4 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.396, allocations: 0.5692 MB / 434 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.396, allocations: 0 / 434 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.394e-05/0.396, allocations: 9.281 kB / 434 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.396, allocations: 11.28 kB / 434 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.3974, allocations: 0.5085 MB / 434.5 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.3989, allocations: 1.025 MB / 435.6 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/0.4006, allocations: 486.7 kB / 436 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006948/0.4013, allocations: 232 kB / 436.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.315e-05/0.4014, allocations: 13.81 kB / 436.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.4014, allocations: 46.34 kB / 436.3 MB, free: 6.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.535e-06/0.4014, allocations: 0 / 436.3 MB, free: 6.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04204/0.4435, allocations: 5.763 MB / 442.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001854/0.4436, allocations: 151 kB / 442.2 MB, free: 5.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004905/0.4441, allocations: 254.4 kB / 442.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001197/0.4443, allocations: 41.05 kB / 442.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.4444, allocations: 156.9 kB / 442.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002401/0.4446, allocations: 201 kB / 442.9 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003479/0.445, allocations: 115 kB / 443 MB, free: 5.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.4451, allocations: 345.3 kB / 443.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001767/0.4468, allocations: 0.6179 MB / 443.9 MB, free: 4.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001913/0.4488, allocations: 0.7933 MB / 444.7 MB, free: 3.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003072/0.4518, allocations: 1.255 MB / 446 MB, free: 3.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.227e-06/0.4518, allocations: 1.094 kB / 446 MB, free: 3.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003727/0.4556, allocations: 1.403 MB / 447.4 MB, free: 2.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.4556, allocations: 8.375 kB / 447.4 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.4556, allocations: 4.906 kB / 447.4 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.835e-05/0.4556, allocations: 10.12 kB / 447.4 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/0.457, allocations: 211.5 kB / 447.6 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.846e-05/0.457, allocations: 17.97 kB / 447.6 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009846/0.458, allocations: 101.3 kB / 447.7 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.292e-05/0.4581, allocations: 29.34 kB / 447.8 MB, free: 2.746 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,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 (83): * Single equations (assignments): 83 * 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.0003363/0.4585, allocations: 189.1 kB / 448 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003141/0.4588, allocations: 167.3 kB / 448.1 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001855/0.459, allocations: 70.39 kB / 448.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.459, allocations: 7.625 kB / 448.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.459, allocations: 1.094 kB / 448.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.459, allocations: 3.812 kB / 448.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00468/0.4637, allocations: 2.19 MB / 450.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.828e-05/0.4637, allocations: 9.188 kB / 450.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008305/0.4645, allocations: 182.7 kB / 450.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.938e-05/0.4645, allocations: 15.02 kB / 450.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.319e-05/0.4646, allocations: 31.61 kB / 450.6 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.909e-05/0.4646, allocations: 17.81 kB / 450.6 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.265e-05/0.4646, allocations: 16.16 kB / 450.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003082/0.4677, allocations: 1.566 MB / 452.2 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002782/0.468, allocations: 181 kB / 452.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.219e-05/0.4681, allocations: 34.3 kB / 452.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006272/0.4687, allocations: 72.58 kB / 452.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.4689, allocations: 96.44 kB / 452.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.432e-05/0.4689, allocations: 33.84 kB / 452.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002278/0.4692, allocations: 185 kB / 452.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4692, allocations: 0 / 452.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000809/0.47, allocations: 128.1 kB / 452.9 MB, free: 15.73 MB / 366.1 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.003898/0.4739, allocations: 2.134 MB / 455.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003183/0.4771, allocations: 1.036 MB / 456.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-05/0.4771, allocations: 1.281 kB / 456.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.4782, allocations: 330.6 kB / 456.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.4792, allocations: 142 kB / 456.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01521/0.4945, allocations: 6.918 MB / 463.5 MB, free: 8.176 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006414/0.4951, allocations: 0.8277 MB / 464.3 MB, free: 7.422 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006327/0.4957, allocations: 99.06 kB / 464.4 MB, free: 7.371 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004648/0.4962, allocations: 126 kB / 464.5 MB, free: 7.277 MB / 366.1 MB Notification: Performance of SimCode: time 1.443e-06/0.4962, allocations: 0 / 464.5 MB, free: 7.277 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03736/0.5336, allocations: 11.75 MB / 476.3 MB, free: 13.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.572/10.11, allocations: 8 kB / 476.3 MB, free: 13.6 MB / 382.1 MB " [Timeout remaining time 650] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.u,PI.x,PI.y,angle.flange.phi,angle.flange.tau,angle.phi,der(load.w),der(speed.flange.phi),fastClock.factor,fastClock.resolution,fastClock.useSolver,feedback1.u1,feedback1.u2,feedback1.y,feedback2.u1,feedback2.u2,feedback2.y,gain.k,gain.u,gain.y,hold1.u,hold1.y,hold1.y_start,kinematicPTP.endTime,kinematicPTP.moving[1],kinematicPTP.nout,kinematicPTP.q[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd[1],kinematicPTP.qd_max[1],kinematicPTP.qdd[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.a,load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.stateSelect,load.w,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,slowClock.factor,slowClock.resolution,slowClock.useSolver,speed.flange.phi,speed.flange.tau,speed.w,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 13.072474676009733]