Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001285/0.001285, allocations: 111.8 kB / 18.49 MB, free: 4.562 MB / 14.72 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.001265/0.001265, allocations: 194.5 kB / 21.43 MB, free: 1.633 MB / 14.72 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 1.469/1.469, allocations: 225.6 MB / 249.8 MB, free: 3.73 MB / 190.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 47.92 kB / 366.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1435, allocations: 52.14 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004628/0.1481, allocations: 2.361 MB / 420.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.1498, allocations: 0.8104 MB / 421.6 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001583/0.1499, allocations: 7.938 kB / 421.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003457/0.1503, allocations: 51.55 kB / 421.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.1505, allocations: 67.56 kB / 421.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005094/0.151, allocations: 178.8 kB / 421.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004879/0.1515, allocations: 383.5 kB / 422.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002249/0.1517, allocations: 76.5 kB / 422.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002595/0.152, allocations: 167.4 kB / 422.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002844/0.1523, allocations: 187.3 kB / 422.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.23e-05/0.1523, allocations: 32 kB / 422.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.538e-05/0.1524, allocations: 36 kB / 422.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.1525, allocations: 95.72 kB / 422.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.1527, allocations: 143.2 kB / 423 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004617/0.1531, allocations: 338.6 kB / 423.4 MB, free: 7.695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1532, allocations: 0 / 423.4 MB, free: 7.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1532, allocations: 0 / 423.4 MB, free: 7.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.1532, allocations: 0 / 423.4 MB, free: 7.695 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001343/0.1545, allocations: 0.6314 MB / 424 MB, free: 7.016 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.1546, allocations: 8.031 kB / 424 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.363e-05/0.1546, allocations: 20.69 kB / 424 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.979e-05/0.1547, allocations: 70.72 kB / 424.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.129e-05/0.1548, allocations: 36.75 kB / 424.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004541/0.1552, allocations: 284.3 kB / 424.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002371/0.1554, allocations: 134.3 kB / 424.5 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.82e-05/0.1555, allocations: 36.06 kB / 424.6 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.1568, allocations: 0.5582 MB / 425.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.1568, allocations: 7.891 kB / 425.1 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.805e-05/0.1569, allocations: 12 kB / 425.1 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.1569, allocations: 8 kB / 425.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001438/0.1583, allocations: 0.5087 MB / 425.7 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.16, allocations: 1.01 MB / 426.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001674/0.1617, allocations: 482.5 kB / 427.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006693/0.1623, allocations: 239.4 kB / 427.4 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.368e-05/0.1624, allocations: 4 kB / 427.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.203e-05/0.1624, allocations: 46.5 kB / 427.4 MB, free: 3.348 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.633e-06/0.1624, allocations: 0 / 427.4 MB, free: 3.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03955/0.202, allocations: 5.725 MB / 433.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001524/0.2021, allocations: 148.9 kB / 433.3 MB, free: 13.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002724/0.2024, allocations: 199.4 kB / 433.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.552e-05/0.2025, allocations: 37.7 kB / 433.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.2026, allocations: 149.7 kB / 433.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.2028, allocations: 194.4 kB / 433.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003159/0.2031, allocations: 114.7 kB / 434 MB, free: 12.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.2033, allocations: 342.8 kB / 434.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00174/0.2051, allocations: 0.6149 MB / 434.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001856/0.2069, allocations: 0.7963 MB / 435.7 MB, free: 10.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003319/0.2103, allocations: 1.244 MB / 437 MB, free: 9.574 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.2103, allocations: 8 kB / 437 MB, free: 9.566 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003935/0.2142, allocations: 1.398 MB / 438.4 MB, free: 8.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.2142, allocations: 6.5 kB / 438.4 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.2142, allocations: 8 kB / 438.4 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.88e-05/0.2143, allocations: 8 kB / 438.4 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.2156, allocations: 208 kB / 438.6 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.802e-05/0.2156, allocations: 19.92 kB / 438.6 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000945/0.2166, allocations: 103.8 kB / 438.7 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.162e-05/0.2167, allocations: 27.98 kB / 438.7 MB, free: 7.789 MB / 366.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.0003699/0.217, allocations: 189.5 kB / 438.9 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003334/0.2174, allocations: 153.4 kB / 439.1 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002173/0.2176, allocations: 63.3 kB / 439.1 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.2176, allocations: 12 kB / 439.2 MB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.2176, allocations: 7.938 kB / 439.2 MB, free: 7.355 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.2176, allocations: 4.219 kB / 439.2 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005111/0.2227, allocations: 2.172 MB / 441.3 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.707e-05/0.2227, allocations: 12 kB / 441.3 MB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007601/0.2235, allocations: 180.3 kB / 441.5 MB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.599e-05/0.2235, allocations: 16 kB / 441.5 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.497e-05/0.2236, allocations: 24 kB / 441.6 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.102e-05/0.2236, allocations: 23.92 kB / 441.6 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.169e-05/0.2236, allocations: 11.94 kB / 441.6 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003718/0.2273, allocations: 1.568 MB / 443.2 MB, free: 3.016 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002718/0.2276, allocations: 168.8 kB / 443.3 MB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.347e-05/0.2277, allocations: 31.98 kB / 443.4 MB, free: 2.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006036/0.2283, allocations: 71.92 kB / 443.4 MB, free: 2.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002291/0.2285, allocations: 95.72 kB / 443.5 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.215e-05/0.2286, allocations: 28 kB / 443.6 MB, free: 2.609 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001843/0.2288, allocations: 152 kB / 443.7 MB, free: 2.461 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2288, allocations: 0 / 443.7 MB, free: 2.461 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007287/0.2295, allocations: 120 kB / 443.8 MB, free: 2.344 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.004087/0.2336, allocations: 2.137 MB / 446 MB, free: 48 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.2228/0.4563, allocations: 1.022 MB / 447 MB, free: 31.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/0.4564, allocations: 3.594 kB / 447 MB, free: 31.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009812/0.4573, allocations: 328.9 kB / 447.3 MB, free: 31.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009158/0.4583, allocations: 131.5 kB / 447.4 MB, free: 31.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01266/0.4709, allocations: 6.774 MB / 454.2 MB, free: 28.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004064/0.4713, allocations: 0.8146 MB / 455 MB, free: 27.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000512/0.4718, allocations: 98.84 kB / 455.1 MB, free: 27.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004353/0.4723, allocations: 115.5 kB / 455.2 MB, free: 27.45 MB / 366.1 MB Notification: Performance of SimCode: time 1.413e-06/0.4723, allocations: 0 / 455.2 MB, free: 27.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03772/0.51, allocations: 11.4 MB / 466.6 MB, free: 24.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.917/9.427, allocations: 10.81 kB / 466.6 MB, free: 24.48 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 12.19478933699429]