Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.001261/0.001261, allocations: 121.4 kB / 17.79 MB, free: 5.121 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.001332/0.001332, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.554/1.554, allocations: 225.6 MB / 249.1 MB, free: 3.609 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.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 51.92 kB / 365.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.121, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004201/0.1252, allocations: 2.328 MB / 420.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.127, allocations: 0.7833 MB / 420.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.1272, allocations: 7.938 kB / 420.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002888/0.1274, allocations: 43.62 kB / 420.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002531/0.1277, allocations: 59.5 kB / 421 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000612/0.1283, allocations: 175.7 kB / 421.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004988/0.1288, allocations: 379.5 kB / 421.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002143/0.129, allocations: 63.41 kB / 421.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000278/0.1293, allocations: 163.4 kB / 421.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002591/0.1296, allocations: 175.4 kB / 421.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.052e-05/0.1296, allocations: 39.94 kB / 422 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.99e-05/0.1297, allocations: 32 kB / 422 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.1298, allocations: 95.72 kB / 422.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.13, allocations: 143.2 kB / 422.2 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004646/0.1305, allocations: 326.6 kB / 422.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.1305, allocations: 3.938 kB / 422.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1305, allocations: 0 / 422.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1305, allocations: 0 / 422.5 MB, free: 7.801 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001421/0.1319, allocations: 0.6159 MB / 423.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.1319, allocations: 12.02 kB / 423.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.657e-05/0.132, allocations: 66.73 kB / 423.2 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.99e-05/0.1321, allocations: 44.75 kB / 423.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005031/0.1326, allocations: 272.4 kB / 423.5 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002265/0.1328, allocations: 138.2 kB / 423.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.413e-05/0.1329, allocations: 24.38 kB / 423.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.1341, allocations: 0.5501 MB / 424.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.1341, allocations: 3.984 kB / 424.3 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.564e-05/0.1342, allocations: 16 kB / 424.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.1342, allocations: 8 kB / 424.3 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.1355, allocations: 0.5152 MB / 424.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001734/0.1372, allocations: 1.014 MB / 425.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.1388, allocations: 478.5 kB / 426.3 MB, free: 3.812 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006142/0.1394, allocations: 239.4 kB / 426.5 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.836e-05/0.1395, allocations: 8.141 kB / 426.5 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.1395, allocations: 42.5 kB / 426.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.395e-06/0.1395, allocations: 0 / 426.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.0393/0.1788, allocations: 5.716 MB / 432.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001408/0.179, allocations: 152.9 kB / 432.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002826/0.1793, allocations: 199.2 kB / 432.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.311e-05/0.1793, allocations: 33.7 kB / 432.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.1795, allocations: 149.7 kB / 432.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002259/0.1797, allocations: 198.3 kB / 433 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003039/0.18, allocations: 110.6 kB / 433.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001974/0.1802, allocations: 346.8 kB / 433.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001589/0.1818, allocations: 0.6149 MB / 434.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00176/0.1835, allocations: 0.7963 MB / 434.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003054/0.1866, allocations: 1.244 MB / 436.1 MB, free: 9.738 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/0.1866, allocations: 7.875 kB / 436.1 MB, free: 9.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003665/0.1903, allocations: 1.398 MB / 437.5 MB, free: 8.324 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/0.1903, allocations: 8 kB / 437.5 MB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.1903, allocations: 8.406 kB / 437.5 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.444e-05/0.1903, allocations: 12 kB / 437.5 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.1917, allocations: 203.7 kB / 437.7 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.277e-05/0.1918, allocations: 15.92 kB / 437.7 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.1928, allocations: 107.7 kB / 437.8 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.1929, allocations: 31.98 kB / 437.9 MB, free: 7.945 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.0003803/0.1933, allocations: 178.4 kB / 438.1 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003826/0.1937, allocations: 153.4 kB / 438.2 MB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002088/0.1939, allocations: 71.28 kB / 438.3 MB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.1939, allocations: 8 kB / 438.3 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.1939, allocations: 0 / 438.3 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.1939, allocations: 3.984 kB / 438.3 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005182/0.1991, allocations: 2.172 MB / 440.5 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.916e-05/0.1991, allocations: 12 kB / 440.5 MB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008049/0.1999, allocations: 175.8 kB / 440.6 MB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.915e-05/0.1999, allocations: 16 kB / 440.7 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.045e-05/0.2, allocations: 24 kB / 440.7 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-05/0.2, allocations: 27.86 kB / 440.7 MB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.351e-05/0.2, allocations: 16.16 kB / 440.7 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003384/0.2034, allocations: 1.557 MB / 442.3 MB, free: 3.191 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002972/0.2037, allocations: 168.8 kB / 442.4 MB, free: 3.008 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.375e-05/0.2038, allocations: 27.98 kB / 442.5 MB, free: 2.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000591/0.2044, allocations: 75.98 kB / 442.5 MB, free: 2.906 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002207/0.2046, allocations: 99.66 kB / 442.6 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.817e-05/0.2047, allocations: 31.94 kB / 442.7 MB, free: 2.777 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001746/0.2048, allocations: 144.2 kB / 442.8 MB, free: 2.637 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2048, allocations: 0 / 442.8 MB, free: 2.637 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007284/0.2056, allocations: 120 kB / 442.9 MB, free: 2.52 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.003735/0.2093, allocations: 2.133 MB / 445.1 MB, free: 232 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.2384/0.4477, allocations: 1.025 MB / 446.1 MB, free: 31.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/0.4477, allocations: 4.188 kB / 446.1 MB, free: 31.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.4488, allocations: 332.1 kB / 446.4 MB, free: 31.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.45, allocations: 129.5 kB / 446.5 MB, free: 31.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01371/0.4637, allocations: 6.778 MB / 453.3 MB, free: 28.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004847/0.4642, allocations: 0.8088 MB / 454.1 MB, free: 27.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006278/0.4648, allocations: 93.91 kB / 454.2 MB, free: 27.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003884/0.4652, allocations: 115.3 kB / 454.3 MB, free: 27.43 MB / 366.1 MB Notification: Performance of SimCode: time 1.362e-06/0.4652, allocations: 0 / 454.3 MB, free: 27.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04885/0.514, allocations: 11.3 MB / 465.6 MB, free: 24.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.038/9.552, allocations: 5.031 kB / 465.6 MB, free: 24.56 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.47439937805757]