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.001931/0.001931, allocations: 117 kB / 17.73 MB, free: 5.309 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.002152/0.002152, allocations: 186.8 kB / 20.67 MB, free: 2.375 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.597/1.597, allocations: 222.9 MB / 246.4 MB, free: 4.195 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 47.92 kB / 357.5 MB, free: 8.82 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1201, allocations: 49.44 MB / 406.9 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.005117/0.1253, allocations: 2.338 MB / 409.2 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002034/0.1273, allocations: 0.7949 MB / 410 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003197/0.1277, allocations: 11.94 kB / 410.1 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003989/0.1281, allocations: 55.55 kB / 410.1 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003302/0.1285, allocations: 63.52 kB / 410.2 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006996/0.1292, allocations: 175.6 kB / 410.3 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000642/0.1298, allocations: 383.5 kB / 410.7 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002895/0.1301, allocations: 108 kB / 410.8 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003694/0.1305, allocations: 163.4 kB / 411 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003747/0.1309, allocations: 171.3 kB / 411.2 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.923e-05/0.131, allocations: 36 kB / 411.2 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.256e-05/0.1311, allocations: 32 kB / 411.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001603/0.1313, allocations: 99.77 kB / 411.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002036/0.1315, allocations: 147.2 kB / 411.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006169/0.1321, allocations: 338.6 kB / 411.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.1321, allocations: 7.938 kB / 411.8 MB, free: 2.426 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1321, allocations: 0 / 411.8 MB, free: 2.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.1322, allocations: 4 kB / 411.8 MB, free: 2.422 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.001576/0.1338, allocations: 0.6236 MB / 412.4 MB, free: 1.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.1338, allocations: 12.02 kB / 412.4 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.824e-05/0.1339, allocations: 66.73 kB / 412.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.134, allocations: 36.75 kB / 412.5 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006024/0.1346, allocations: 289 kB / 412.8 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002435/0.1349, allocations: 134.3 kB / 413 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.378e-05/0.135, allocations: 32.38 kB / 413 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.1364, allocations: 0.5659 MB / 413.5 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.069e-05/0.1364, allocations: 3.953 kB / 413.6 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.776e-05/0.1365, allocations: 12 kB / 413.6 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.1365, allocations: 8 kB / 413.6 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001539/0.138, allocations: 0.5113 MB / 414.1 MB, free: 0 / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.1402, allocations: 1.002 MB / 415.1 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/0.142, allocations: 0.5024 MB / 415.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007691/0.1428, allocations: 263.4 kB / 415.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.028e-05/0.1429, allocations: 4 kB / 415.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.048e-05/0.1429, allocations: 46.5 kB / 415.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.465e-06/0.1429, allocations: 0 / 415.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03906/0.182, allocations: 5.733 MB / 421.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001556/0.1822, allocations: 145.3 kB / 421.8 MB, free: 8.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/0.1825, allocations: 195.5 kB / 422 MB, free: 7.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.1826, allocations: 41.64 kB / 422 MB, free: 7.883 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.1827, allocations: 153.7 kB / 422.2 MB, free: 7.727 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002208/0.183, allocations: 194.3 kB / 422.3 MB, free: 7.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003066/0.1833, allocations: 110.7 kB / 422.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.1835, allocations: 350.7 kB / 422.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/0.1852, allocations: 0.6188 MB / 423.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001892/0.1871, allocations: 0.7885 MB / 424.2 MB, free: 5.586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003304/0.1904, allocations: 1.251 MB / 425.4 MB, free: 4.258 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.1904, allocations: 3.984 kB / 425.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003892/0.1943, allocations: 1.398 MB / 426.9 MB, free: 2.848 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.1944, allocations: 8 kB / 426.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.1944, allocations: 7.938 kB / 426.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.06e-05/0.1945, allocations: 11.98 kB / 426.9 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/0.1958, allocations: 215.7 kB / 427.1 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.081e-05/0.1958, allocations: 11.94 kB / 427.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009727/0.1968, allocations: 95.78 kB / 427.2 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.769e-05/0.1969, allocations: 31.98 kB / 427.2 MB, free: 2.473 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.0003772/0.1973, allocations: 177.6 kB / 427.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003476/0.1977, allocations: 169.2 kB / 427.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001809/0.1979, allocations: 63.31 kB / 427.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.1979, allocations: 8 kB / 427.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.1979, allocations: 0 / 427.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.1979, allocations: 3.984 kB / 427.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2599/0.4578, allocations: 2.164 MB / 429.8 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.151e-05/0.4579, allocations: 10.41 kB / 429.8 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007991/0.4587, allocations: 184 kB / 430 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.434e-05/0.4587, allocations: 13.5 kB / 430 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.014e-05/0.4587, allocations: 26.83 kB / 430 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-05/0.4588, allocations: 20.19 kB / 430.1 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.06e-05/0.4588, allocations: 14.78 kB / 430.1 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003013/0.4618, allocations: 1.561 MB / 431.6 MB, free: 22.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001719/0.462, allocations: 162.4 kB / 431.8 MB, free: 22.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.942e-05/0.4621, allocations: 31.36 kB / 431.8 MB, free: 22.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006061/0.4627, allocations: 76.14 kB / 431.9 MB, free: 22.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/0.4629, allocations: 94.52 kB / 432 MB, free: 22.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-05/0.4629, allocations: 32.02 kB / 432 MB, free: 22.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001254/0.4631, allocations: 139.2 kB / 432.1 MB, free: 21.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4631, allocations: 0 / 432.1 MB, free: 21.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000674/0.4638, allocations: 121.3 kB / 432.3 MB, free: 21.99 MB / 350.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.003463/0.4672, allocations: 2.133 MB / 434.4 MB, free: 20.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003388/0.4706, allocations: 1.137 MB / 435.5 MB, free: 20.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.796e-06/0.4706, allocations: 1.469 kB / 435.5 MB, free: 20.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001116/0.4718, allocations: 346.6 kB / 435.9 MB, free: 20.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000995/0.4728, allocations: 144.3 kB / 436 MB, free: 20.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01421/0.487, allocations: 6.787 MB / 442.8 MB, free: 18.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/0.4875, allocations: 0.8128 MB / 443.6 MB, free: 17.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006059/0.4881, allocations: 98.66 kB / 443.7 MB, free: 17.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004332/0.4885, allocations: 116 kB / 443.8 MB, free: 17.39 MB / 350.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4885, allocations: 4 kB / 443.8 MB, free: 17.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04228/0.5308, allocations: 11.3 MB / 455.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.869/9.4, allocations: 5.312 kB / 455.1 MB, free: 13.7 MB / 350.1 MB " [Timeout remaining time 651] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] Reference file matches [Calling sys.exit(0), Time elapsed: 12.259676460176706]