Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.001374/0.001374, 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.001475/0.001475, 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.545/1.545, allocations: 225.6 MB / 249.1 MB, free: 3.617 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.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 47.92 kB / 365.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1267, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004251/0.1309, allocations: 2.402 MB / 420.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.1329, allocations: 0.83 MB / 421 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000251/0.1331, allocations: 11.94 kB / 421 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003924/0.1335, allocations: 55.56 kB / 421.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002833/0.1338, allocations: 71.47 kB / 421.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007001/0.1345, allocations: 203.5 kB / 421.3 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005195/0.135, allocations: 391.5 kB / 421.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002547/0.1353, allocations: 75.5 kB / 421.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000279/0.1355, allocations: 167.4 kB / 421.9 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002859/0.1358, allocations: 187.2 kB / 422.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.076e-05/0.1359, allocations: 36 kB / 422.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.585e-05/0.1359, allocations: 36 kB / 422.2 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.1361, allocations: 107.7 kB / 422.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001745/0.1363, allocations: 167 kB / 422.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005143/0.1368, allocations: 366.4 kB / 422.8 MB, free: 7.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.1368, allocations: 0 / 422.8 MB, free: 7.523 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1368, allocations: 0 / 422.8 MB, free: 7.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.403e-06/0.1368, allocations: 0 / 422.8 MB, free: 7.523 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001454/0.1383, allocations: 0.6817 MB / 423.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.1383, allocations: 12.03 kB / 423.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.933e-05/0.1384, allocations: 70.72 kB / 423.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.704e-05/0.1385, allocations: 48.7 kB / 423.6 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006153/0.1391, allocations: 315.3 kB / 423.9 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002243/0.1393, allocations: 134.3 kB / 424.1 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.166e-05/0.1394, allocations: 36.31 kB / 424.1 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.1406, allocations: 0.5705 MB / 424.7 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.1407, allocations: 3.953 kB / 424.7 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.505e-05/0.1407, allocations: 12 kB / 424.7 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.1407, allocations: 4 kB / 424.7 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.1421, allocations: 0.5214 MB / 425.2 MB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001837/0.1439, allocations: 1.026 MB / 426.2 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/0.1456, allocations: 486.5 kB / 426.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006184/0.1462, allocations: 227.4 kB / 426.9 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.34e-05/0.1463, allocations: 16.12 kB / 427 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.1463, allocations: 46.5 kB / 427 MB, free: 3.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 4.369e-06/0.1463, allocations: 0 / 427 MB, free: 3.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03965/0.186, allocations: 5.759 MB / 432.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001747/0.1861, allocations: 144.9 kB / 432.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004236/0.1866, allocations: 262.5 kB / 433.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/0.1867, allocations: 41.69 kB / 433.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.1868, allocations: 149.7 kB / 433.3 MB, free: 12.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002768/0.1871, allocations: 194.4 kB / 433.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003226/0.1874, allocations: 122.6 kB / 433.7 MB, free: 12.35 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002131/0.1876, allocations: 346.8 kB / 434 MB, free: 12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001653/0.1893, allocations: 0.611 MB / 434.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00188/0.1911, allocations: 0.8002 MB / 435.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003217/0.1944, allocations: 1.248 MB / 436.7 MB, free: 9.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.318e-05/0.1944, allocations: 8 kB / 436.7 MB, free: 9.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003813/0.1982, allocations: 1.402 MB / 438.1 MB, free: 7.766 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.835e-05/0.1982, allocations: 11.94 kB / 438.1 MB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.266e-05/0.1983, allocations: 8 kB / 438.1 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.142e-05/0.1983, allocations: 8 kB / 438.1 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/0.1997, allocations: 203.7 kB / 438.3 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.317e-05/0.1998, allocations: 15.92 kB / 438.3 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/0.2008, allocations: 107.8 kB / 438.4 MB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.67e-05/0.2009, allocations: 27.98 kB / 438.4 MB, free: 7.391 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.0004233/0.2013, allocations: 189.6 kB / 438.6 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004002/0.2017, allocations: 169.9 kB / 438.8 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002099/0.2019, allocations: 67.61 kB / 438.9 MB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.2019, allocations: 12 kB / 438.9 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.2019, allocations: 0 / 438.9 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.2019, allocations: 3.984 kB / 438.9 MB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005296/0.2072, allocations: 2.187 MB / 441.1 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-05/0.2072, allocations: 8 kB / 441.1 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008149/0.2081, allocations: 180.3 kB / 441.2 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-05/0.2081, allocations: 19.94 kB / 441.3 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.224e-05/0.2081, allocations: 28 kB / 441.3 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.852e-05/0.2082, allocations: 19.92 kB / 441.3 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.731e-05/0.2082, allocations: 19.94 kB / 441.3 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003567/0.2117, allocations: 1.572 MB / 442.9 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000379/0.2121, allocations: 176.7 kB / 443.1 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.96e-05/0.2122, allocations: 27.98 kB / 443.1 MB, free: 2.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006117/0.2128, allocations: 75.92 kB / 443.2 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002249/0.2131, allocations: 95.72 kB / 443.3 MB, free: 2.188 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.702e-05/0.2131, allocations: 35.94 kB / 443.3 MB, free: 2.152 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002629/0.2134, allocations: 186 kB / 443.5 MB, free: 1.969 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2134, allocations: 4 kB / 443.5 MB, free: 1.965 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007626/0.2141, allocations: 123.9 kB / 443.6 MB, free: 1.844 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.2153/0.4295, allocations: 2.132 MB / 445.7 MB, free: 30.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00258/0.4321, allocations: 1.032 MB / 446.8 MB, free: 30.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.898e-06/0.4321, allocations: 5.219 kB / 446.8 MB, free: 30.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009249/0.433, allocations: 326.9 kB / 447.1 MB, free: 30.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.434, allocations: 152.3 kB / 447.2 MB, free: 30.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01257/0.4466, allocations: 6.899 MB / 454.1 MB, free: 27.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003702/0.447, allocations: 0.8297 MB / 455 MB, free: 26.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005317/0.4475, allocations: 100.8 kB / 455.1 MB, free: 26.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003853/0.4479, allocations: 122.1 kB / 455.2 MB, free: 26.43 MB / 366.1 MB Notification: Performance of SimCode: time 1.403e-06/0.4479, allocations: 1.219 kB / 455.2 MB, free: 26.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05194/0.4998, allocations: 11.7 MB / 466.9 MB, free: 23.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.169/9.669, allocations: 9.094 kB / 466.9 MB, free: 23.3 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.556317694950849]