Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001483/0.001483, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001713/0.001713, allocations: 220.5 kB / 24.53 MB, free: 4.004 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.672/1.672, allocations: 230.5 MB / 258.2 MB, free: 8.012 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.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00237/0.00237, allocations: 63.91 kB / 378.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4318/0.4341, allocations: 53.41 MB / 431.9 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.005006/0.4391, allocations: 2.389 MB / 434.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.4411, allocations: 0.8533 MB / 435.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002746/0.4414, allocations: 7.938 kB / 435.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004459/0.4418, allocations: 51.58 kB / 435.2 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003233/0.4421, allocations: 63.48 kB / 435.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000773/0.4429, allocations: 187.2 kB / 435.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005753/0.4435, allocations: 391.5 kB / 435.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002319/0.4437, allocations: 68.36 kB / 435.9 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004019/0.4441, allocations: 171.5 kB / 436.1 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002978/0.4444, allocations: 187.2 kB / 436.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.185e-05/0.4445, allocations: 36 kB / 436.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.468e-05/0.4445, allocations: 32 kB / 436.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.4447, allocations: 99.66 kB / 436.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.4448, allocations: 151.2 kB / 436.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005194/0.4454, allocations: 327.1 kB / 436.9 MB, free: 1.723 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.4454, allocations: 7.938 kB / 436.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4454, allocations: 0 / 436.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.4454, allocations: 0 / 436.9 MB, free: 1.715 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001327/0.4467, allocations: 0.5444 MB / 437.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/0.4468, allocations: 12.03 kB / 437.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.489e-05/0.4468, allocations: 8.688 kB / 437.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.004e-05/0.4469, allocations: 70.72 kB / 437.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.443e-05/0.447, allocations: 40.7 kB / 437.6 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004924/0.4474, allocations: 227.1 kB / 437.8 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003803/0.4478, allocations: 347.9 kB / 438.2 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.618e-05/0.4479, allocations: 36.12 kB / 438.2 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.4493, allocations: 0.562 MB / 438.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/0.4493, allocations: 4 kB / 438.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.641e-05/0.4493, allocations: 11.98 kB / 438.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.4493, allocations: 8 kB / 438.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/0.4508, allocations: 0.5113 MB / 439.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.4524, allocations: 0.9491 MB / 440.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001671/0.4541, allocations: 482.5 kB / 440.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006751/0.4548, allocations: 243.3 kB / 441 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.901e-05/0.4548, allocations: 4 kB / 441 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.4549, allocations: 38.56 kB / 441 MB, free: 13.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.325e-06/0.4549, allocations: 0 / 441 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.05381/0.5087, allocations: 5.737 MB / 446.7 MB, free: 7.621 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001837/0.5089, allocations: 157 kB / 446.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003744/0.5092, allocations: 196.6 kB / 447.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001205/0.5094, allocations: 41.7 kB / 447.1 MB, free: 7.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.5095, allocations: 145.7 kB / 447.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002848/0.5098, allocations: 198.3 kB / 447.5 MB, free: 6.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003375/0.5102, allocations: 114.6 kB / 447.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.5103, allocations: 342.8 kB / 447.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/0.5121, allocations: 0.6149 MB / 448.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001966/0.514, allocations: 0.8002 MB / 449.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003406/0.5174, allocations: 1.247 MB / 450.6 MB, free: 3.566 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.425e-05/0.5174, allocations: 4 kB / 450.6 MB, free: 3.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004218/0.5217, allocations: 1.398 MB / 452 MB, free: 2.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.938e-05/0.5217, allocations: 4 kB / 452 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-05/0.5217, allocations: 8.078 kB / 452 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.525e-05/0.5218, allocations: 12.22 kB / 452 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/0.5232, allocations: 207.6 kB / 452.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.314e-05/0.5232, allocations: 19.97 kB / 452.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009682/0.5242, allocations: 99.8 kB / 452.3 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.951e-05/0.5243, allocations: 27.98 kB / 452.3 MB, free: 1.785 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.0003787/0.5247, allocations: 185.5 kB / 452.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003901/0.525, allocations: 153.7 kB / 452.7 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002086/0.5253, allocations: 63.28 kB / 452.7 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/0.5253, allocations: 8 kB / 452.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.785e-05/0.5253, allocations: 4 kB / 452.7 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.5253, allocations: 3.984 kB / 452.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005531/0.5308, allocations: 2.14 MB / 454.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.188e-05/0.5308, allocations: 16.06 kB / 454.9 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000835/0.5317, allocations: 183.7 kB / 455.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.276e-05/0.5317, allocations: 15.98 kB / 455.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.705e-05/0.5318, allocations: 24 kB / 455.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.037e-05/0.5318, allocations: 20.12 kB / 455.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.377e-05/0.5318, allocations: 19.88 kB / 455.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003585/0.5354, allocations: 1.557 MB / 456.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002534/0.5356, allocations: 87.64 kB / 456.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.09e-05/0.5357, allocations: 27.98 kB / 456.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006162/0.5363, allocations: 79.98 kB / 456.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002323/0.5366, allocations: 95.64 kB / 457 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.216e-05/0.5366, allocations: 31.98 kB / 457 MB, free: 12.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001563/0.5368, allocations: 148 kB / 457.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5368, allocations: 0 / 457.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007268/0.5375, allocations: 116 kB / 457.3 MB, free: 12.49 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.003989/0.5415, allocations: 2.117 MB / 459.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003237/0.5447, allocations: 1.034 MB / 460.4 MB, free: 9.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/0.5447, allocations: 4 kB / 460.4 MB, free: 9.176 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001205/0.5459, allocations: 334 kB / 460.8 MB, free: 8.852 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.5471, allocations: 144.8 kB / 460.9 MB, free: 8.715 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01533/0.5624, allocations: 6.781 MB / 467.7 MB, free: 1.438 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005104/0.5629, allocations: 0.8167 MB / 468.5 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005343/0.5635, allocations: 91.33 kB / 468.6 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004061/0.5639, allocations: 115.4 kB / 468.7 MB, free: 392 kB / 366.1 MB Notification: Performance of SimCode: time 1.773e-06/0.5639, allocations: 0 / 468.7 MB, free: 392 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04503/0.6089, allocations: 12.06 MB / 480.8 MB, free: 4.445 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.9, allocations: 8.062 kB / 480.8 MB, free: 4.438 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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),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,periodicRealClock.period,periodicRealClock.useSolver,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,speed.flange.phi,speed.flange.tau,speed.w,subSample1.factor,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: 16.08302326698322]