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.001338/0.001338, allocations: 123.9 kB / 17.79 MB, free: 5.266 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.00131/0.00131, allocations: 185.2 kB / 20.73 MB, free: 2.332 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.536/1.536, allocations: 225.6 MB / 249.1 MB, free: 3.582 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.001502/0.001502, allocations: 55.91 kB / 365.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1179, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004098/0.122, allocations: 2.357 MB / 420.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.1237, allocations: 0.8027 MB / 420.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.1239, allocations: 7.938 kB / 420.9 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003085/0.1242, allocations: 55.56 kB / 421 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001952/0.1244, allocations: 55.56 kB / 421 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005241/0.1249, allocations: 202.5 kB / 421.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004944/0.1254, allocations: 383.5 kB / 421.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.1256, allocations: 76.5 kB / 421.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002524/0.1258, allocations: 163.5 kB / 421.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002849/0.1261, allocations: 183.2 kB / 422 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.1262, allocations: 32 kB / 422.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.075e-05/0.1263, allocations: 40 kB / 422.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.1264, allocations: 99.7 kB / 422.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.1266, allocations: 143.2 kB / 422.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004547/0.127, allocations: 338.6 kB / 422.7 MB, free: 7.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.127, allocations: 3.984 kB / 422.7 MB, free: 7.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.127, allocations: 0 / 422.7 MB, free: 7.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.127, allocations: 0 / 422.7 MB, free: 7.68 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.001435/0.1285, allocations: 0.6236 MB / 423.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.1285, allocations: 8.031 kB / 423.3 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001049/0.1286, allocations: 74.66 kB / 423.4 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.662e-05/0.1287, allocations: 36.75 kB / 423.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004955/0.1292, allocations: 292.3 kB / 423.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002333/0.1294, allocations: 138.3 kB / 423.8 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.447e-05/0.1295, allocations: 28.38 kB / 423.9 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.1308, allocations: 0.5543 MB / 424.4 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.74e-05/0.1308, allocations: 11.95 kB / 424.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.621e-05/0.1308, allocations: 12 kB / 424.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.1308, allocations: 8 kB / 424.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001368/0.1322, allocations: 0.5151 MB / 425 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.134, allocations: 0.9909 MB / 425.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001607/0.1356, allocations: 486.4 kB / 426.4 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006416/0.1362, allocations: 239.3 kB / 426.7 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.482e-05/0.1363, allocations: 8 kB / 426.7 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/0.1363, allocations: 38.56 kB / 426.7 MB, free: 3.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.205e-06/0.1363, allocations: 0 / 426.7 MB, free: 3.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03852/0.1748, allocations: 5.732 MB / 432.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/0.175, allocations: 145 kB / 432.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/0.1753, allocations: 207.3 kB / 432.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.762e-05/0.1754, allocations: 33.7 kB / 432.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.1755, allocations: 149.7 kB / 433 MB, free: 13.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002195/0.1757, allocations: 194.4 kB / 433.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003473/0.1761, allocations: 106.7 kB / 433.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.1762, allocations: 350.8 kB / 433.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001587/0.1778, allocations: 0.6149 MB / 434.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001776/0.1796, allocations: 0.7925 MB / 435 MB, free: 10.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00306/0.1827, allocations: 1.247 MB / 436.2 MB, free: 9.582 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1827, allocations: 0 / 436.2 MB, free: 9.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003661/0.1863, allocations: 1.402 MB / 437.6 MB, free: 8.172 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/0.1864, allocations: 12.03 kB / 437.7 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.116e-05/0.1864, allocations: 4 kB / 437.7 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.003e-05/0.1864, allocations: 8 kB / 437.7 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/0.1878, allocations: 215.6 kB / 437.9 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.688e-05/0.1878, allocations: 8 kB / 437.9 MB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009274/0.1887, allocations: 99.78 kB / 438 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.882e-05/0.1888, allocations: 31.98 kB / 438 MB, free: 7.801 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.0003796/0.1892, allocations: 177.6 kB / 438.2 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000327/0.1895, allocations: 173.8 kB / 438.4 MB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000167/0.1897, allocations: 67.3 kB / 438.4 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.1897, allocations: 8 kB / 438.4 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.1897, allocations: 4 kB / 438.4 MB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.1897, allocations: 3.984 kB / 438.4 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004981/0.1947, allocations: 2.18 MB / 440.6 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/0.1947, allocations: 8 kB / 440.6 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007593/0.1954, allocations: 179.7 kB / 440.8 MB, free: 4.812 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.668e-05/0.1955, allocations: 16 kB / 440.8 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-05/0.1955, allocations: 27.98 kB / 440.8 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.507e-05/0.1955, allocations: 19.94 kB / 440.9 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.457e-05/0.1955, allocations: 20.19 kB / 440.9 MB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003362/0.1989, allocations: 1.561 MB / 442.4 MB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002733/0.1992, allocations: 164.8 kB / 442.6 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.233e-05/0.1993, allocations: 27.98 kB / 442.6 MB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005998/0.1999, allocations: 75.98 kB / 442.7 MB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002077/0.2001, allocations: 99.66 kB / 442.8 MB, free: 2.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.562e-05/0.2001, allocations: 28 kB / 442.8 MB, free: 2.613 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001428/0.2003, allocations: 140.1 kB / 443 MB, free: 2.477 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2003, allocations: 0 / 443 MB, free: 2.477 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006914/0.2009, allocations: 123.9 kB / 443.1 MB, free: 2.355 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.0039/0.2048, allocations: 2.133 MB / 445.2 MB, free: 64 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.2315/0.4363, allocations: 1.027 MB / 446.3 MB, free: 31.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.214e-05/0.4364, allocations: 0.7188 kB / 446.3 MB, free: 31.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.4374, allocations: 334.4 kB / 446.6 MB, free: 31.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.4385, allocations: 126.4 kB / 446.7 MB, free: 31.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01289/0.4514, allocations: 6.782 MB / 453.5 MB, free: 28.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006238/0.452, allocations: 0.8142 MB / 454.3 MB, free: 27.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006818/0.4527, allocations: 98.09 kB / 454.4 MB, free: 27.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004326/0.4531, allocations: 118.3 kB / 454.5 MB, free: 27.45 MB / 366.1 MB Notification: Performance of SimCode: time 1.834e-06/0.4531, allocations: 0 / 454.5 MB, free: 27.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04366/0.4968, allocations: 11.37 MB / 465.9 MB, free: 24.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.936/9.433, allocations: 8.531 kB / 465.9 MB, free: 24.5 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_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.285697353072464]