Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001324/0.001324, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.001459/0.001459, allocations: 218.9 kB / 21.46 MB, free: 1.605 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.548/1.548, allocations: 230.6 MB / 254.8 MB, free: 15.23 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: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 51.92 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1136, allocations: 53.33 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003368/0.1169, allocations: 2.169 MB / 429.2 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.1181, allocations: 0.6822 MB / 429.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.1182, allocations: 3.938 kB / 429.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002457/0.1184, allocations: 51.64 kB / 429.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001355/0.1186, allocations: 51.61 kB / 430 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003312/0.1189, allocations: 119.8 kB / 430.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003745/0.1193, allocations: 339.2 kB / 430.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.1194, allocations: 48.36 kB / 430.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002591/0.1197, allocations: 159.5 kB / 430.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002209/0.1199, allocations: 151.4 kB / 430.8 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.647e-05/0.12, allocations: 28 kB / 430.8 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.443e-05/0.12, allocations: 32 kB / 430.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.1201, allocations: 95.72 kB / 430.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.1202, allocations: 123.4 kB / 431 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000321/0.1205, allocations: 282.8 kB / 431.3 MB, free: 484 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1205, allocations: 0 / 431.3 MB, free: 484 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1205, allocations: 4 kB / 431.3 MB, free: 480 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.1206, allocations: 0 / 431.3 MB, free: 480 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001126/0.1217, allocations: 0.588 MB / 431.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.1217, allocations: 8.031 kB / 431.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.908e-05/0.1217, allocations: 8.125 kB / 431.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.405e-05/0.1218, allocations: 62.73 kB / 432 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.377e-05/0.1219, allocations: 28.8 kB / 432 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003455/0.1222, allocations: 264.5 kB / 432.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001987/0.1224, allocations: 137.8 kB / 432.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.593e-05/0.1225, allocations: 24 kB / 432.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008357/0.1233, allocations: 363.6 kB / 432.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.1233, allocations: 3.953 kB / 432.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.271e-05/0.1233, allocations: 12 kB / 432.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.1234, allocations: 4 kB / 432.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.1247, allocations: 0.4901 MB / 433.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001704/0.1264, allocations: 1.011 MB / 434.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001189/0.1276, allocations: 319.1 kB / 434.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005089/0.1281, allocations: 161.2 kB / 434.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.42e-05/0.1281, allocations: 8.234 kB / 434.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/0.1282, allocations: 34.8 kB / 434.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.442e-06/0.1282, allocations: 0 / 434.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.02805/0.1562, allocations: 5.801 MB / 440.6 MB, free: 6.863 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.272e-05/0.1563, allocations: 55.84 kB / 440.7 MB, free: 6.797 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002599/0.1565, allocations: 198.9 kB / 440.9 MB, free: 6.594 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.405e-05/0.1566, allocations: 33.7 kB / 440.9 MB, free: 6.555 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.1567, allocations: 153 kB / 441 MB, free: 6.402 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.1569, allocations: 190.4 kB / 441.2 MB, free: 6.215 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002221/0.1571, allocations: 90.2 kB / 441.3 MB, free: 6.121 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.1573, allocations: 334.8 kB / 441.6 MB, free: 5.785 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001357/0.1586, allocations: 468.8 kB / 442.1 MB, free: 5.328 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001397/0.16, allocations: 0.5177 MB / 442.6 MB, free: 4.793 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002456/0.1625, allocations: 0.8032 MB / 443.4 MB, free: 3.977 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1625, allocations: 0 / 443.4 MB, free: 3.977 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002888/0.1654, allocations: 0.9945 MB / 444.4 MB, free: 2.977 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.1654, allocations: 4 kB / 444.4 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.1654, allocations: 0 / 444.4 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.1654, allocations: 4 kB / 444.4 MB, free: 2.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.1664, allocations: 167.8 kB / 444.6 MB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.1664, allocations: 7.938 kB / 444.6 MB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006725/0.1671, allocations: 83.92 kB / 444.7 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.172e-05/0.1672, allocations: 19.94 kB / 444.7 MB, free: 2.695 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002363/0.1674, allocations: 157.8 kB / 444.8 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.97e-05/0.1675, allocations: 31.75 kB / 444.9 MB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001454/0.1676, allocations: 51.3 kB / 444.9 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1676, allocations: 4 kB / 444.9 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.1676, allocations: 4 kB / 444.9 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1676, allocations: 7.922 kB / 444.9 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004178/0.1718, allocations: 1.88 MB / 446.8 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-05/0.1718, allocations: 8 kB / 446.8 MB, free: 388 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006429/0.1725, allocations: 155.7 kB / 447 MB, free: 232 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.41e-05/0.1725, allocations: 12.53 kB / 447 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.157e-05/0.1725, allocations: 24 kB / 447 MB, free: 196 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.315e-05/0.1725, allocations: 15.94 kB / 447 MB, free: 180 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.384e-06/0.1726, allocations: 8 kB / 447 MB, free: 172 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2083/0.3808, allocations: 1.217 MB / 448.3 MB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001824/0.381, allocations: 149.3 kB / 448.4 MB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.399e-05/0.3811, allocations: 21.69 kB / 448.4 MB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005317/0.3816, allocations: 71.28 kB / 448.5 MB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001787/0.3818, allocations: 94.62 kB / 448.6 MB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-05/0.3818, allocations: 22.5 kB / 448.6 MB, free: 24.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001565/0.382, allocations: 145.5 kB / 448.8 MB, free: 24.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.382, allocations: 0 / 448.8 MB, free: 24.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004993/0.3825, allocations: 96.66 kB / 448.8 MB, free: 24.47 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.00286/0.3854, allocations: 1.779 MB / 450.6 MB, free: 23.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00231/0.3877, allocations: 0.783 MB / 451.4 MB, free: 23.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.3877, allocations: 1.094 kB / 451.4 MB, free: 23.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009515/0.3886, allocations: 316.9 kB / 451.7 MB, free: 23.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006092/0.3892, allocations: 58.77 kB / 451.8 MB, free: 23.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/0.4003, allocations: 5.236 MB / 457 MB, free: 20.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.4007, allocations: 0.7842 MB / 457.8 MB, free: 19.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004553/0.4011, allocations: 83.5 kB / 457.9 MB, free: 19.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003226/0.4014, allocations: 94.02 kB / 458 MB, free: 19.55 MB / 366.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4014, allocations: 0 / 458 MB, free: 19.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03436/0.4358, allocations: 8.417 MB / 466.4 MB, free: 17.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.826/9.262, allocations: 14.88 kB / 466.4 MB, free: 17.96 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.initType,PI.k,PI.u,PI.x,PI.x_start,PI.y,PI.y_start,angle.flange.phi,angle.flange.tau,angle.phi,der(PI.x),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,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,speed.flange.phi,speed.flange.tau,speed.w,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 11.984422545996495]